You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Drivers: pinctrl: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> Cc: Barry Song <baohua.song@csr.com> Cc: Viresh Kumar <viresh.linux@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Cc: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -451,8 +451,7 @@ int spear310_o2p(int offset)
|
||||
return offset + 2;
|
||||
}
|
||||
|
||||
static int __devinit plgpio_probe_dt(struct platform_device *pdev,
|
||||
struct plgpio *plgpio)
|
||||
static int plgpio_probe_dt(struct platform_device *pdev, struct plgpio *plgpio)
|
||||
{
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
int ret = -EINVAL;
|
||||
@@ -522,7 +521,7 @@ static int __devinit plgpio_probe_dt(struct platform_device *pdev,
|
||||
end:
|
||||
return ret;
|
||||
}
|
||||
static int __devinit plgpio_probe(struct platform_device *pdev)
|
||||
static int plgpio_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
struct plgpio *plgpio;
|
||||
|
||||
@@ -82,9 +82,8 @@ static int set_mode(struct spear_pmx *pmx, int mode)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __devinit
|
||||
pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
|
||||
unsigned count, u16 reg)
|
||||
void pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
|
||||
unsigned count, u16 reg)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
@@ -93,7 +92,7 @@ pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
|
||||
gpio_pingroup[i].muxregs[j].reg = reg;
|
||||
}
|
||||
|
||||
void __devinit pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg)
|
||||
void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg)
|
||||
{
|
||||
struct spear_pingroup *pgroup;
|
||||
struct spear_modemux *modemux;
|
||||
@@ -358,8 +357,8 @@ static struct pinctrl_desc spear_pinctrl_desc = {
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
int __devinit spear_pinctrl_probe(struct platform_device *pdev,
|
||||
struct spear_pinctrl_machdata *machdata)
|
||||
int spear_pinctrl_probe(struct platform_device *pdev,
|
||||
struct spear_pinctrl_machdata *machdata)
|
||||
{
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
struct resource *res;
|
||||
|
||||
@@ -192,12 +192,11 @@ static inline void pmx_writel(struct spear_pmx *pmx, u32 val, u32 reg)
|
||||
writel_relaxed(val, pmx->vbase + reg);
|
||||
}
|
||||
|
||||
void __devinit pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg);
|
||||
void __devinit
|
||||
pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
|
||||
unsigned count, u16 reg);
|
||||
int __devinit spear_pinctrl_probe(struct platform_device *pdev,
|
||||
struct spear_pinctrl_machdata *machdata);
|
||||
void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg);
|
||||
void pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup,
|
||||
unsigned count, u16 reg);
|
||||
int spear_pinctrl_probe(struct platform_device *pdev,
|
||||
struct spear_pinctrl_machdata *machdata);
|
||||
int spear_pinctrl_remove(struct platform_device *pdev);
|
||||
|
||||
#define SPEAR_PIN_0_TO_101 \
|
||||
|
||||
@@ -2699,7 +2699,7 @@ static struct of_device_id spear1310_pinctrl_of_match[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static int __devinit spear1310_pinctrl_probe(struct platform_device *pdev)
|
||||
static int spear1310_pinctrl_probe(struct platform_device *pdev)
|
||||
{
|
||||
return spear_pinctrl_probe(pdev, &spear1310_machdata);
|
||||
}
|
||||
|
||||
@@ -2015,7 +2015,7 @@ static struct of_device_id spear1340_pinctrl_of_match[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static int __devinit spear1340_pinctrl_probe(struct platform_device *pdev)
|
||||
static int spear1340_pinctrl_probe(struct platform_device *pdev)
|
||||
{
|
||||
return spear_pinctrl_probe(pdev, &spear1340_machdata);
|
||||
}
|
||||
|
||||
@@ -653,7 +653,7 @@ static struct of_device_id spear300_pinctrl_of_match[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static int __devinit spear300_pinctrl_probe(struct platform_device *pdev)
|
||||
static int spear300_pinctrl_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -378,7 +378,7 @@ static struct of_device_id spear310_pinctrl_of_match[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static int __devinit spear310_pinctrl_probe(struct platform_device *pdev)
|
||||
static int spear310_pinctrl_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -3417,7 +3417,7 @@ static struct of_device_id spear320_pinctrl_of_match[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static int __devinit spear320_pinctrl_probe(struct platform_device *pdev)
|
||||
static int spear320_pinctrl_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user