diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:10:23 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:02 -0500 |
commit | 150632b09aadf1996f5cb6c0c2620d63a01fe2de (patch) | |
tree | 181a645f6158d7c9e7e8d63c02c1bce34b50e360 /drivers/pinctrl/spear | |
parent | 5a167f4543e45d45c5672a5cd6cb8ba5ddf4f3ea (diff) |
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>
Diffstat (limited to 'drivers/pinctrl/spear')
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-plgpio.c | 5 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear.c | 11 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear.h | 11 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear1310.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear1340.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear300.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear310.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear320.c | 2 |
8 files changed, 17 insertions, 20 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-plgpio.c b/drivers/pinctrl/spear/pinctrl-plgpio.c index 4c045053bbdd..3cf4ecd9302c 100644 --- a/drivers/pinctrl/spear/pinctrl-plgpio.c +++ b/drivers/pinctrl/spear/pinctrl-plgpio.c | |||
@@ -451,8 +451,7 @@ int spear310_o2p(int offset) | |||
451 | return offset + 2; | 451 | return offset + 2; |
452 | } | 452 | } |
453 | 453 | ||
454 | static int __devinit plgpio_probe_dt(struct platform_device *pdev, | 454 | static int plgpio_probe_dt(struct platform_device *pdev, struct plgpio *plgpio) |
455 | struct plgpio *plgpio) | ||
456 | { | 455 | { |
457 | struct device_node *np = pdev->dev.of_node; | 456 | struct device_node *np = pdev->dev.of_node; |
458 | int ret = -EINVAL; | 457 | int ret = -EINVAL; |
@@ -522,7 +521,7 @@ static int __devinit plgpio_probe_dt(struct platform_device *pdev, | |||
522 | end: | 521 | end: |
523 | return ret; | 522 | return ret; |
524 | } | 523 | } |
525 | static int __devinit plgpio_probe(struct platform_device *pdev) | 524 | static int plgpio_probe(struct platform_device *pdev) |
526 | { | 525 | { |
527 | struct device_node *np = pdev->dev.of_node; | 526 | struct device_node *np = pdev->dev.of_node; |
528 | struct plgpio *plgpio; | 527 | struct plgpio *plgpio; |
diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c index 922c057521a1..6a7dae70db08 100644 --- a/drivers/pinctrl/spear/pinctrl-spear.c +++ b/drivers/pinctrl/spear/pinctrl-spear.c | |||
@@ -82,9 +82,8 @@ static int set_mode(struct spear_pmx *pmx, int mode) | |||
82 | return 0; | 82 | return 0; |
83 | } | 83 | } |
84 | 84 | ||
85 | void __devinit | 85 | void pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, |
86 | pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, | 86 | unsigned count, u16 reg) |
87 | unsigned count, u16 reg) | ||
88 | { | 87 | { |
89 | int i, j; | 88 | int i, j; |
90 | 89 | ||
@@ -93,7 +92,7 @@ pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, | |||
93 | gpio_pingroup[i].muxregs[j].reg = reg; | 92 | gpio_pingroup[i].muxregs[j].reg = reg; |
94 | } | 93 | } |
95 | 94 | ||
96 | void __devinit pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg) | 95 | void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg) |
97 | { | 96 | { |
98 | struct spear_pingroup *pgroup; | 97 | struct spear_pingroup *pgroup; |
99 | struct spear_modemux *modemux; | 98 | struct spear_modemux *modemux; |
@@ -358,8 +357,8 @@ static struct pinctrl_desc spear_pinctrl_desc = { | |||
358 | .owner = THIS_MODULE, | 357 | .owner = THIS_MODULE, |
359 | }; | 358 | }; |
360 | 359 | ||
361 | int __devinit spear_pinctrl_probe(struct platform_device *pdev, | 360 | int spear_pinctrl_probe(struct platform_device *pdev, |
362 | struct spear_pinctrl_machdata *machdata) | 361 | struct spear_pinctrl_machdata *machdata) |
363 | { | 362 | { |
364 | struct device_node *np = pdev->dev.of_node; | 363 | struct device_node *np = pdev->dev.of_node; |
365 | struct resource *res; | 364 | struct resource *res; |
diff --git a/drivers/pinctrl/spear/pinctrl-spear.h b/drivers/pinctrl/spear/pinctrl-spear.h index 1be46ecc6d91..dc8bf85ecb2a 100644 --- a/drivers/pinctrl/spear/pinctrl-spear.h +++ b/drivers/pinctrl/spear/pinctrl-spear.h | |||
@@ -192,12 +192,11 @@ static inline void pmx_writel(struct spear_pmx *pmx, u32 val, u32 reg) | |||
192 | writel_relaxed(val, pmx->vbase + reg); | 192 | writel_relaxed(val, pmx->vbase + reg); |
193 | } | 193 | } |
194 | 194 | ||
195 | void __devinit pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg); | 195 | void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg); |
196 | void __devinit | 196 | void pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, |
197 | pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, | 197 | unsigned count, u16 reg); |
198 | unsigned count, u16 reg); | 198 | int spear_pinctrl_probe(struct platform_device *pdev, |
199 | int __devinit spear_pinctrl_probe(struct platform_device *pdev, | 199 | struct spear_pinctrl_machdata *machdata); |
200 | struct spear_pinctrl_machdata *machdata); | ||
201 | int spear_pinctrl_remove(struct platform_device *pdev); | 200 | int spear_pinctrl_remove(struct platform_device *pdev); |
202 | 201 | ||
203 | #define SPEAR_PIN_0_TO_101 \ | 202 | #define SPEAR_PIN_0_TO_101 \ |
diff --git a/drivers/pinctrl/spear/pinctrl-spear1310.c b/drivers/pinctrl/spear/pinctrl-spear1310.c index e40d785a3fc2..1a8bbfec60ca 100644 --- a/drivers/pinctrl/spear/pinctrl-spear1310.c +++ b/drivers/pinctrl/spear/pinctrl-spear1310.c | |||
@@ -2699,7 +2699,7 @@ static struct of_device_id spear1310_pinctrl_of_match[] = { | |||
2699 | {}, | 2699 | {}, |
2700 | }; | 2700 | }; |
2701 | 2701 | ||
2702 | static int __devinit spear1310_pinctrl_probe(struct platform_device *pdev) | 2702 | static int spear1310_pinctrl_probe(struct platform_device *pdev) |
2703 | { | 2703 | { |
2704 | return spear_pinctrl_probe(pdev, &spear1310_machdata); | 2704 | return spear_pinctrl_probe(pdev, &spear1310_machdata); |
2705 | } | 2705 | } |
diff --git a/drivers/pinctrl/spear/pinctrl-spear1340.c b/drivers/pinctrl/spear/pinctrl-spear1340.c index 8deaaff3156c..873966e2b99f 100644 --- a/drivers/pinctrl/spear/pinctrl-spear1340.c +++ b/drivers/pinctrl/spear/pinctrl-spear1340.c | |||
@@ -2015,7 +2015,7 @@ static struct of_device_id spear1340_pinctrl_of_match[] = { | |||
2015 | {}, | 2015 | {}, |
2016 | }; | 2016 | }; |
2017 | 2017 | ||
2018 | static int __devinit spear1340_pinctrl_probe(struct platform_device *pdev) | 2018 | static int spear1340_pinctrl_probe(struct platform_device *pdev) |
2019 | { | 2019 | { |
2020 | return spear_pinctrl_probe(pdev, &spear1340_machdata); | 2020 | return spear_pinctrl_probe(pdev, &spear1340_machdata); |
2021 | } | 2021 | } |
diff --git a/drivers/pinctrl/spear/pinctrl-spear300.c b/drivers/pinctrl/spear/pinctrl-spear300.c index f48e466e605a..4777c0d0e730 100644 --- a/drivers/pinctrl/spear/pinctrl-spear300.c +++ b/drivers/pinctrl/spear/pinctrl-spear300.c | |||
@@ -653,7 +653,7 @@ static struct of_device_id spear300_pinctrl_of_match[] = { | |||
653 | {}, | 653 | {}, |
654 | }; | 654 | }; |
655 | 655 | ||
656 | static int __devinit spear300_pinctrl_probe(struct platform_device *pdev) | 656 | static int spear300_pinctrl_probe(struct platform_device *pdev) |
657 | { | 657 | { |
658 | int ret; | 658 | int ret; |
659 | 659 | ||
diff --git a/drivers/pinctrl/spear/pinctrl-spear310.c b/drivers/pinctrl/spear/pinctrl-spear310.c index 5b954c19a6d2..06c7e6f1c7f2 100644 --- a/drivers/pinctrl/spear/pinctrl-spear310.c +++ b/drivers/pinctrl/spear/pinctrl-spear310.c | |||
@@ -378,7 +378,7 @@ static struct of_device_id spear310_pinctrl_of_match[] = { | |||
378 | {}, | 378 | {}, |
379 | }; | 379 | }; |
380 | 380 | ||
381 | static int __devinit spear310_pinctrl_probe(struct platform_device *pdev) | 381 | static int spear310_pinctrl_probe(struct platform_device *pdev) |
382 | { | 382 | { |
383 | int ret; | 383 | int ret; |
384 | 384 | ||
diff --git a/drivers/pinctrl/spear/pinctrl-spear320.c b/drivers/pinctrl/spear/pinctrl-spear320.c index e9a5e6d39242..b8e290a8c8c9 100644 --- a/drivers/pinctrl/spear/pinctrl-spear320.c +++ b/drivers/pinctrl/spear/pinctrl-spear320.c | |||
@@ -3417,7 +3417,7 @@ static struct of_device_id spear320_pinctrl_of_match[] = { | |||
3417 | {}, | 3417 | {}, |
3418 | }; | 3418 | }; |
3419 | 3419 | ||
3420 | static int __devinit spear320_pinctrl_probe(struct platform_device *pdev) | 3420 | static int spear320_pinctrl_probe(struct platform_device *pdev) |
3421 | { | 3421 | { |
3422 | int ret; | 3422 | int ret; |
3423 | 3423 | ||