aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-11-19 13:23:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-28 15:34:57 -0500
commit98ea1ea20cb7090d5ae2003c23fc8a7f14fca4c7 (patch)
tree998114c044f2d252299b8ae27cad03e111c64eb0 /drivers/leds
parentdf07cf81268192e42c4cdf91f5f4bf9aaac1b2f0 (diff)
leds: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Jan-Simon Moeller <jansimon.moeller@gmx.de> Acked-by: Bryan Wu <cooloney@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-adp5520.c4
-rw-r--r--drivers/leds/leds-asic3.c2
-rw-r--r--drivers/leds/leds-atmel-pwm.c2
-rw-r--r--drivers/leds/leds-bd2802.c2
-rw-r--r--drivers/leds/leds-blinkm.c2
-rw-r--r--drivers/leds/leds-clevo-mail.c2
-rw-r--r--drivers/leds/leds-cobalt-qube.c2
-rw-r--r--drivers/leds/leds-cobalt-raq.c2
-rw-r--r--drivers/leds/leds-da903x.c2
-rw-r--r--drivers/leds/leds-da9052.c2
-rw-r--r--drivers/leds/leds-gpio.c8
-rw-r--r--drivers/leds/leds-lm3530.c2
-rw-r--r--drivers/leds/leds-lm3533.c4
-rw-r--r--drivers/leds/leds-lm355x.c4
-rw-r--r--drivers/leds/leds-lm3642.c4
-rw-r--r--drivers/leds/leds-lp3944.c2
-rw-r--r--drivers/leds/leds-lp5521.c4
-rw-r--r--drivers/leds/leds-lp5523.c4
-rw-r--r--drivers/leds/leds-lp8788.c2
-rw-r--r--drivers/leds/leds-lt3593.c4
-rw-r--r--drivers/leds/leds-max8997.c2
-rw-r--r--drivers/leds/leds-mc13783.c6
-rw-r--r--drivers/leds/leds-netxbig.c6
-rw-r--r--drivers/leds/leds-ns2.c4
-rw-r--r--drivers/leds/leds-ot200.c2
-rw-r--r--drivers/leds/leds-pca955x.c2
-rw-r--r--drivers/leds/leds-pca9633.c2
-rw-r--r--drivers/leds/leds-rb532.c2
-rw-r--r--drivers/leds/leds-regulator.c2
-rw-r--r--drivers/leds/leds-renesas-tpu.c2
-rw-r--r--drivers/leds/leds-ss4200.c4
-rw-r--r--drivers/leds/leds-sunfire.c6
-rw-r--r--drivers/leds/leds-tca6507.c2
33 files changed, 51 insertions, 51 deletions
diff --git a/drivers/leds/leds-adp5520.c b/drivers/leds/leds-adp5520.c
index e068802f5222..28c97667c079 100644
--- a/drivers/leds/leds-adp5520.c
+++ b/drivers/leds/leds-adp5520.c
@@ -85,7 +85,7 @@ static int adp5520_led_setup(struct adp5520_led *led)
85 return ret; 85 return ret;
86} 86}
87 87
88static int __devinit adp5520_led_prepare(struct platform_device *pdev) 88static int adp5520_led_prepare(struct platform_device *pdev)
89{ 89{
90 struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data; 90 struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data;
91 struct device *dev = pdev->dev.parent; 91 struct device *dev = pdev->dev.parent;
@@ -101,7 +101,7 @@ static int __devinit adp5520_led_prepare(struct platform_device *pdev)
101 return ret; 101 return ret;
102} 102}
103 103
104static int __devinit adp5520_led_probe(struct platform_device *pdev) 104static int adp5520_led_probe(struct platform_device *pdev)
105{ 105{
106 struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data; 106 struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data;
107 struct adp5520_led *led, *led_dat; 107 struct adp5520_led *led, *led_dat;
diff --git a/drivers/leds/leds-asic3.c b/drivers/leds/leds-asic3.c
index ec601e2e92dc..c700ad9053f5 100644
--- a/drivers/leds/leds-asic3.c
+++ b/drivers/leds/leds-asic3.c
@@ -92,7 +92,7 @@ static int blink_set(struct led_classdev *cdev,
92 return 0; 92 return 0;
93} 93}
94 94
95static int __devinit asic3_led_probe(struct platform_device *pdev) 95static int asic3_led_probe(struct platform_device *pdev)
96{ 96{
97 struct asic3_led *led = pdev->dev.platform_data; 97 struct asic3_led *led = pdev->dev.platform_data;
98 int ret; 98 int ret;
diff --git a/drivers/leds/leds-atmel-pwm.c b/drivers/leds/leds-atmel-pwm.c
index 45430632faab..386773532d95 100644
--- a/drivers/leds/leds-atmel-pwm.c
+++ b/drivers/leds/leds-atmel-pwm.c
@@ -35,7 +35,7 @@ static void pwmled_brightness(struct led_classdev *cdev, enum led_brightness b)
35 * NOTE: we reuse the platform_data structure of GPIO leds, 35 * NOTE: we reuse the platform_data structure of GPIO leds,
36 * but repurpose its "gpio" number as a PWM channel number. 36 * but repurpose its "gpio" number as a PWM channel number.
37 */ 37 */
38static int __devinit pwmled_probe(struct platform_device *pdev) 38static int pwmled_probe(struct platform_device *pdev)
39{ 39{
40 const struct gpio_led_platform_data *pdata; 40 const struct gpio_led_platform_data *pdata;
41 struct pwmled *leds; 41 struct pwmled *leds;
diff --git a/drivers/leds/leds-bd2802.c b/drivers/leds/leds-bd2802.c
index 89ca6a2a19d1..9abe8de40edd 100644
--- a/drivers/leds/leds-bd2802.c
+++ b/drivers/leds/leds-bd2802.c
@@ -670,7 +670,7 @@ static void bd2802_unregister_led_classdev(struct bd2802_led *led)
670 led_classdev_unregister(&led->cdev_led1r); 670 led_classdev_unregister(&led->cdev_led1r);
671} 671}
672 672
673static int __devinit bd2802_probe(struct i2c_client *client, 673static int bd2802_probe(struct i2c_client *client,
674 const struct i2c_device_id *id) 674 const struct i2c_device_id *id)
675{ 675{
676 struct bd2802_led *led; 676 struct bd2802_led *led;
diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c
index 92a2c1f696f5..5ed27d318074 100644
--- a/drivers/leds/leds-blinkm.c
+++ b/drivers/leds/leds-blinkm.c
@@ -632,7 +632,7 @@ static int blinkm_detect(struct i2c_client *client, struct i2c_board_info *info)
632 return 0; 632 return 0;
633} 633}
634 634
635static int __devinit blinkm_probe(struct i2c_client *client, 635static int blinkm_probe(struct i2c_client *client,
636 const struct i2c_device_id *id) 636 const struct i2c_device_id *id)
637{ 637{
638 struct blinkm_data *data; 638 struct blinkm_data *data;
diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c
index e024b0b1c3b1..b02547052e12 100644
--- a/drivers/leds/leds-clevo-mail.c
+++ b/drivers/leds/leds-clevo-mail.c
@@ -153,7 +153,7 @@ static struct led_classdev clevo_mail_led = {
153 .flags = LED_CORE_SUSPENDRESUME, 153 .flags = LED_CORE_SUSPENDRESUME,
154}; 154};
155 155
156static int __devinit clevo_mail_led_probe(struct platform_device *pdev) 156static int clevo_mail_led_probe(struct platform_device *pdev)
157{ 157{
158 return led_classdev_register(&pdev->dev, &clevo_mail_led); 158 return led_classdev_register(&pdev->dev, &clevo_mail_led);
159} 159}
diff --git a/drivers/leds/leds-cobalt-qube.c b/drivers/leds/leds-cobalt-qube.c
index cdf00652dd55..f663979db63d 100644
--- a/drivers/leds/leds-cobalt-qube.c
+++ b/drivers/leds/leds-cobalt-qube.c
@@ -34,7 +34,7 @@ static struct led_classdev qube_front_led = {
34 .default_trigger = "default-on", 34 .default_trigger = "default-on",
35}; 35};
36 36
37static int __devinit cobalt_qube_led_probe(struct platform_device *pdev) 37static int cobalt_qube_led_probe(struct platform_device *pdev)
38{ 38{
39 struct resource *res; 39 struct resource *res;
40 int retval; 40 int retval;
diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c
index 0894e89d43fd..9d88dc2f81a5 100644
--- a/drivers/leds/leds-cobalt-raq.c
+++ b/drivers/leds/leds-cobalt-raq.c
@@ -76,7 +76,7 @@ static struct led_classdev raq_power_off_led = {
76 .default_trigger = "power-off", 76 .default_trigger = "power-off",
77}; 77};
78 78
79static int __devinit cobalt_raq_led_probe(struct platform_device *pdev) 79static int cobalt_raq_led_probe(struct platform_device *pdev)
80{ 80{
81 struct resource *res; 81 struct resource *res;
82 int retval; 82 int retval;
diff --git a/drivers/leds/leds-da903x.c b/drivers/leds/leds-da903x.c
index de08c9312af0..bb174905b0fe 100644
--- a/drivers/leds/leds-da903x.c
+++ b/drivers/leds/leds-da903x.c
@@ -91,7 +91,7 @@ static void da903x_led_set(struct led_classdev *led_cdev,
91 schedule_work(&led->work); 91 schedule_work(&led->work);
92} 92}
93 93
94static int __devinit da903x_led_probe(struct platform_device *pdev) 94static int da903x_led_probe(struct platform_device *pdev)
95{ 95{
96 struct led_info *pdata = pdev->dev.platform_data; 96 struct led_info *pdata = pdev->dev.platform_data;
97 struct da903x_led *led; 97 struct da903x_led *led;
diff --git a/drivers/leds/leds-da9052.c b/drivers/leds/leds-da9052.c
index 0df968cf0599..ded9931010a8 100644
--- a/drivers/leds/leds-da9052.c
+++ b/drivers/leds/leds-da9052.c
@@ -102,7 +102,7 @@ static int da9052_configure_leds(struct da9052 *da9052)
102 return error; 102 return error;
103} 103}
104 104
105static int __devinit da9052_led_probe(struct platform_device *pdev) 105static int da9052_led_probe(struct platform_device *pdev)
106{ 106{
107 struct da9052_pdata *pdata; 107 struct da9052_pdata *pdata;
108 struct da9052 *da9052; 108 struct da9052 *da9052;
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 51bc51311de0..5c9efc73f06a 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -91,7 +91,7 @@ static int gpio_blink_set(struct led_classdev *led_cdev,
91 delay_on, delay_off); 91 delay_on, delay_off);
92} 92}
93 93
94static int __devinit create_gpio_led(const struct gpio_led *template, 94static int create_gpio_led(const struct gpio_led *template,
95 struct gpio_led_data *led_dat, struct device *parent, 95 struct gpio_led_data *led_dat, struct device *parent,
96 int (*blink_set)(unsigned, int, unsigned long *, unsigned long *)) 96 int (*blink_set)(unsigned, int, unsigned long *, unsigned long *))
97{ 97{
@@ -167,7 +167,7 @@ static inline int sizeof_gpio_leds_priv(int num_leds)
167 167
168/* Code to create from OpenFirmware platform devices */ 168/* Code to create from OpenFirmware platform devices */
169#ifdef CONFIG_OF_GPIO 169#ifdef CONFIG_OF_GPIO
170static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) 170static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
171{ 171{
172 struct device_node *np = pdev->dev.of_node, *child; 172 struct device_node *np = pdev->dev.of_node, *child;
173 struct gpio_leds_priv *priv; 173 struct gpio_leds_priv *priv;
@@ -224,14 +224,14 @@ static const struct of_device_id of_gpio_leds_match[] = {
224 {}, 224 {},
225}; 225};
226#else /* CONFIG_OF_GPIO */ 226#else /* CONFIG_OF_GPIO */
227static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) 227static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
228{ 228{
229 return NULL; 229 return NULL;
230} 230}
231#endif /* CONFIG_OF_GPIO */ 231#endif /* CONFIG_OF_GPIO */
232 232
233 233
234static int __devinit gpio_led_probe(struct platform_device *pdev) 234static int gpio_led_probe(struct platform_device *pdev)
235{ 235{
236 struct gpio_led_platform_data *pdata = pdev->dev.platform_data; 236 struct gpio_led_platform_data *pdata = pdev->dev.platform_data;
237 struct gpio_leds_priv *priv; 237 struct gpio_leds_priv *priv;
diff --git a/drivers/leds/leds-lm3530.c b/drivers/leds/leds-lm3530.c
index 5ac59e1f3334..1aaaaa230c99 100644
--- a/drivers/leds/leds-lm3530.c
+++ b/drivers/leds/leds-lm3530.c
@@ -377,7 +377,7 @@ static ssize_t lm3530_mode_set(struct device *dev, struct device_attribute
377} 377}
378static DEVICE_ATTR(mode, 0644, lm3530_mode_get, lm3530_mode_set); 378static DEVICE_ATTR(mode, 0644, lm3530_mode_get, lm3530_mode_set);
379 379
380static int __devinit lm3530_probe(struct i2c_client *client, 380static int lm3530_probe(struct i2c_client *client,
381 const struct i2c_device_id *id) 381 const struct i2c_device_id *id)
382{ 382{
383 struct lm3530_platform_data *pdata = client->dev.platform_data; 383 struct lm3530_platform_data *pdata = client->dev.platform_data;
diff --git a/drivers/leds/leds-lm3533.c b/drivers/leds/leds-lm3533.c
index be246bf32e2d..7a60440c5806 100644
--- a/drivers/leds/leds-lm3533.c
+++ b/drivers/leds/leds-lm3533.c
@@ -646,7 +646,7 @@ static struct attribute_group lm3533_led_attribute_group = {
646 .attrs = lm3533_led_attributes 646 .attrs = lm3533_led_attributes
647}; 647};
648 648
649static int __devinit lm3533_led_setup(struct lm3533_led *led, 649static int lm3533_led_setup(struct lm3533_led *led,
650 struct lm3533_led_platform_data *pdata) 650 struct lm3533_led_platform_data *pdata)
651{ 651{
652 int ret; 652 int ret;
@@ -658,7 +658,7 @@ static int __devinit lm3533_led_setup(struct lm3533_led *led,
658 return lm3533_ctrlbank_set_pwm(&led->cb, pdata->pwm); 658 return lm3533_ctrlbank_set_pwm(&led->cb, pdata->pwm);
659} 659}
660 660
661static int __devinit lm3533_led_probe(struct platform_device *pdev) 661static int lm3533_led_probe(struct platform_device *pdev)
662{ 662{
663 struct lm3533 *lm3533; 663 struct lm3533 *lm3533;
664 struct lm3533_led_platform_data *pdata; 664 struct lm3533_led_platform_data *pdata;
diff --git a/drivers/leds/leds-lm355x.c b/drivers/leds/leds-lm355x.c
index 307d7b960809..0c9d3a083ac2 100644
--- a/drivers/leds/leds-lm355x.c
+++ b/drivers/leds/leds-lm355x.c
@@ -168,7 +168,7 @@ static char lm355x_name[][I2C_NAME_SIZE] = {
168}; 168};
169 169
170/* chip initialize */ 170/* chip initialize */
171static int __devinit lm355x_chip_init(struct lm355x_chip_data *chip) 171static int lm355x_chip_init(struct lm355x_chip_data *chip)
172{ 172{
173 int ret; 173 int ret;
174 unsigned int reg_val; 174 unsigned int reg_val;
@@ -420,7 +420,7 @@ static const struct regmap_config lm355x_regmap = {
420}; 420};
421 421
422/* module initialize */ 422/* module initialize */
423static int __devinit lm355x_probe(struct i2c_client *client, 423static int lm355x_probe(struct i2c_client *client,
424 const struct i2c_device_id *id) 424 const struct i2c_device_id *id)
425{ 425{
426 struct lm355x_platform_data *pdata = client->dev.platform_data; 426 struct lm355x_platform_data *pdata = client->dev.platform_data;
diff --git a/drivers/leds/leds-lm3642.c b/drivers/leds/leds-lm3642.c
index cae0b7017cbb..20a45812219b 100644
--- a/drivers/leds/leds-lm3642.c
+++ b/drivers/leds/leds-lm3642.c
@@ -93,7 +93,7 @@ struct lm3642_chip_data {
93}; 93};
94 94
95/* chip initialize */ 95/* chip initialize */
96static int __devinit lm3642_chip_init(struct lm3642_chip_data *chip) 96static int lm3642_chip_init(struct lm3642_chip_data *chip)
97{ 97{
98 int ret; 98 int ret;
99 struct lm3642_platform_data *pdata = chip->pdata; 99 struct lm3642_platform_data *pdata = chip->pdata;
@@ -313,7 +313,7 @@ static const struct regmap_config lm3642_regmap = {
313 .max_register = REG_MAX, 313 .max_register = REG_MAX,
314}; 314};
315 315
316static int __devinit lm3642_probe(struct i2c_client *client, 316static int lm3642_probe(struct i2c_client *client,
317 const struct i2c_device_id *id) 317 const struct i2c_device_id *id)
318{ 318{
319 struct lm3642_platform_data *pdata = client->dev.platform_data; 319 struct lm3642_platform_data *pdata = client->dev.platform_data;
diff --git a/drivers/leds/leds-lp3944.c b/drivers/leds/leds-lp3944.c
index aa74b797a2fa..1544124bfcc5 100644
--- a/drivers/leds/leds-lp3944.c
+++ b/drivers/leds/leds-lp3944.c
@@ -374,7 +374,7 @@ exit:
374 return err; 374 return err;
375} 375}
376 376
377static int __devinit lp3944_probe(struct i2c_client *client, 377static int lp3944_probe(struct i2c_client *client,
378 const struct i2c_device_id *id) 378 const struct i2c_device_id *id)
379{ 379{
380 struct lp3944_platform_data *lp3944_pdata = client->dev.platform_data; 380 struct lp3944_platform_data *lp3944_pdata = client->dev.platform_data;
diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c
index d633ecf58687..847434c21f28 100644
--- a/drivers/leds/leds-lp5521.c
+++ b/drivers/leds/leds-lp5521.c
@@ -687,7 +687,7 @@ static void lp5521_unregister_sysfs(struct i2c_client *client)
687 &lp5521_led_attribute_group); 687 &lp5521_led_attribute_group);
688} 688}
689 689
690static int __devinit lp5521_init_led(struct lp5521_led *led, 690static int lp5521_init_led(struct lp5521_led *led,
691 struct i2c_client *client, 691 struct i2c_client *client,
692 int chan, struct lp5521_platform_data *pdata) 692 int chan, struct lp5521_platform_data *pdata)
693{ 693{
@@ -736,7 +736,7 @@ static int __devinit lp5521_init_led(struct lp5521_led *led,
736 return 0; 736 return 0;
737} 737}
738 738
739static int __devinit lp5521_probe(struct i2c_client *client, 739static int lp5521_probe(struct i2c_client *client,
740 const struct i2c_device_id *id) 740 const struct i2c_device_id *id)
741{ 741{
742 struct lp5521_chip *chip; 742 struct lp5521_chip *chip;
diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c
index 97994ffdc014..7e304b7ff779 100644
--- a/drivers/leds/leds-lp5523.c
+++ b/drivers/leds/leds-lp5523.c
@@ -833,7 +833,7 @@ static int __init lp5523_init_engine(struct lp5523_engine *engine, int id)
833 return 0; 833 return 0;
834} 834}
835 835
836static int __devinit lp5523_init_led(struct lp5523_led *led, struct device *dev, 836static int lp5523_init_led(struct lp5523_led *led, struct device *dev,
837 int chan, struct lp5523_platform_data *pdata, 837 int chan, struct lp5523_platform_data *pdata,
838 const char *chip_name) 838 const char *chip_name)
839{ 839{
@@ -882,7 +882,7 @@ static int __devinit lp5523_init_led(struct lp5523_led *led, struct device *dev,
882 return 0; 882 return 0;
883} 883}
884 884
885static int __devinit lp5523_probe(struct i2c_client *client, 885static int lp5523_probe(struct i2c_client *client,
886 const struct i2c_device_id *id) 886 const struct i2c_device_id *id)
887{ 887{
888 struct lp5523_chip *chip; 888 struct lp5523_chip *chip;
diff --git a/drivers/leds/leds-lp8788.c b/drivers/leds/leds-lp8788.c
index fbcfc1b821f8..27831ffe3953 100644
--- a/drivers/leds/leds-lp8788.c
+++ b/drivers/leds/leds-lp8788.c
@@ -125,7 +125,7 @@ static void lp8788_brightness_set(struct led_classdev *led_cdev,
125 schedule_work(&led->work); 125 schedule_work(&led->work);
126} 126}
127 127
128static __devinit int lp8788_led_probe(struct platform_device *pdev) 128static int lp8788_led_probe(struct platform_device *pdev)
129{ 129{
130 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); 130 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent);
131 struct lp8788_led_platform_data *led_pdata; 131 struct lp8788_led_platform_data *led_pdata;
diff --git a/drivers/leds/leds-lt3593.c b/drivers/leds/leds-lt3593.c
index 40657420cfc5..6487293a5e6d 100644
--- a/drivers/leds/leds-lt3593.c
+++ b/drivers/leds/leds-lt3593.c
@@ -82,7 +82,7 @@ static void lt3593_led_set(struct led_classdev *led_cdev,
82 schedule_work(&led_dat->work); 82 schedule_work(&led_dat->work);
83} 83}
84 84
85static int __devinit create_lt3593_led(const struct gpio_led *template, 85static int create_lt3593_led(const struct gpio_led *template,
86 struct lt3593_led_data *led_dat, struct device *parent) 86 struct lt3593_led_data *led_dat, struct device *parent)
87{ 87{
88 int ret, state; 88 int ret, state;
@@ -140,7 +140,7 @@ static void delete_lt3593_led(struct lt3593_led_data *led)
140 gpio_free(led->gpio); 140 gpio_free(led->gpio);
141} 141}
142 142
143static int __devinit lt3593_led_probe(struct platform_device *pdev) 143static int lt3593_led_probe(struct platform_device *pdev)
144{ 144{
145 struct gpio_led_platform_data *pdata = pdev->dev.platform_data; 145 struct gpio_led_platform_data *pdata = pdev->dev.platform_data;
146 struct lt3593_led_data *leds_data; 146 struct lt3593_led_data *leds_data;
diff --git a/drivers/leds/leds-max8997.c b/drivers/leds/leds-max8997.c
index b11a5a72bc3e..f8db895acaf5 100644
--- a/drivers/leds/leds-max8997.c
+++ b/drivers/leds/leds-max8997.c
@@ -229,7 +229,7 @@ static ssize_t max8997_led_store_mode(struct device *dev,
229 229
230static DEVICE_ATTR(mode, 0644, max8997_led_show_mode, max8997_led_store_mode); 230static DEVICE_ATTR(mode, 0644, max8997_led_show_mode, max8997_led_store_mode);
231 231
232static int __devinit max8997_led_probe(struct platform_device *pdev) 232static int max8997_led_probe(struct platform_device *pdev)
233{ 233{
234 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); 234 struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent);
235 struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); 235 struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev);
diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c
index e760b0754ff1..39f72a7a1794 100644
--- a/drivers/leds/leds-mc13783.c
+++ b/drivers/leds/leds-mc13783.c
@@ -128,7 +128,7 @@ static void mc13783_led_set(struct led_classdev *led_cdev,
128 schedule_work(&led->work); 128 schedule_work(&led->work);
129} 129}
130 130
131static int __devinit mc13783_led_setup(struct mc13783_led *led, int max_current) 131static int mc13783_led_setup(struct mc13783_led *led, int max_current)
132{ 132{
133 int shift = 0; 133 int shift = 0;
134 int mask = 0; 134 int mask = 0;
@@ -181,7 +181,7 @@ static int __devinit mc13783_led_setup(struct mc13783_led *led, int max_current)
181 return ret; 181 return ret;
182} 182}
183 183
184static int __devinit mc13783_leds_prepare(struct platform_device *pdev) 184static int mc13783_leds_prepare(struct platform_device *pdev)
185{ 185{
186 struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); 186 struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev);
187 struct mc13xxx *dev = dev_get_drvdata(pdev->dev.parent); 187 struct mc13xxx *dev = dev_get_drvdata(pdev->dev.parent);
@@ -262,7 +262,7 @@ out:
262 return ret; 262 return ret;
263} 263}
264 264
265static int __devinit mc13783_led_probe(struct platform_device *pdev) 265static int mc13783_led_probe(struct platform_device *pdev)
266{ 266{
267 struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); 267 struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev);
268 struct mc13xxx_led_platform_data *led_cur; 268 struct mc13xxx_led_platform_data *led_cur;
diff --git a/drivers/leds/leds-netxbig.c b/drivers/leds/leds-netxbig.c
index b3c0377b51fb..5f2421804a0d 100644
--- a/drivers/leds/leds-netxbig.c
+++ b/drivers/leds/leds-netxbig.c
@@ -71,7 +71,7 @@ static void gpio_ext_set_value(struct netxbig_gpio_ext *gpio_ext,
71 spin_unlock_irqrestore(&gpio_ext_lock, flags); 71 spin_unlock_irqrestore(&gpio_ext_lock, flags);
72} 72}
73 73
74static int __devinit gpio_ext_init(struct netxbig_gpio_ext *gpio_ext) 74static int gpio_ext_init(struct netxbig_gpio_ext *gpio_ext)
75{ 75{
76 int err; 76 int err;
77 int i; 77 int i;
@@ -301,7 +301,7 @@ static void delete_netxbig_led(struct netxbig_led_data *led_dat)
301 led_classdev_unregister(&led_dat->cdev); 301 led_classdev_unregister(&led_dat->cdev);
302} 302}
303 303
304static int __devinit 304static int
305create_netxbig_led(struct platform_device *pdev, 305create_netxbig_led(struct platform_device *pdev,
306 struct netxbig_led_data *led_dat, 306 struct netxbig_led_data *led_dat,
307 const struct netxbig_led *template) 307 const struct netxbig_led *template)
@@ -352,7 +352,7 @@ create_netxbig_led(struct platform_device *pdev,
352 return ret; 352 return ret;
353} 353}
354 354
355static int __devinit netxbig_led_probe(struct platform_device *pdev) 355static int netxbig_led_probe(struct platform_device *pdev)
356{ 356{
357 struct netxbig_led_platform_data *pdata = pdev->dev.platform_data; 357 struct netxbig_led_platform_data *pdata = pdev->dev.platform_data;
358 struct netxbig_led_data *leds_data; 358 struct netxbig_led_data *leds_data;
diff --git a/drivers/leds/leds-ns2.c b/drivers/leds/leds-ns2.c
index 89c8b47b4794..f5d0df32ab83 100644
--- a/drivers/leds/leds-ns2.c
+++ b/drivers/leds/leds-ns2.c
@@ -184,7 +184,7 @@ static ssize_t ns2_led_sata_show(struct device *dev,
184 184
185static DEVICE_ATTR(sata, 0644, ns2_led_sata_show, ns2_led_sata_store); 185static DEVICE_ATTR(sata, 0644, ns2_led_sata_show, ns2_led_sata_store);
186 186
187static int __devinit 187static int
188create_ns2_led(struct platform_device *pdev, struct ns2_led_data *led_dat, 188create_ns2_led(struct platform_device *pdev, struct ns2_led_data *led_dat,
189 const struct ns2_led *template) 189 const struct ns2_led *template)
190{ 190{
@@ -263,7 +263,7 @@ static void delete_ns2_led(struct ns2_led_data *led_dat)
263 gpio_free(led_dat->slow); 263 gpio_free(led_dat->slow);
264} 264}
265 265
266static int __devinit ns2_led_probe(struct platform_device *pdev) 266static int ns2_led_probe(struct platform_device *pdev)
267{ 267{
268 struct ns2_led_platform_data *pdata = pdev->dev.platform_data; 268 struct ns2_led_platform_data *pdata = pdev->dev.platform_data;
269 struct ns2_led_data *leds_data; 269 struct ns2_led_data *leds_data;
diff --git a/drivers/leds/leds-ot200.c b/drivers/leds/leds-ot200.c
index 925217890677..4c26aa2d7af6 100644
--- a/drivers/leds/leds-ot200.c
+++ b/drivers/leds/leds-ot200.c
@@ -115,7 +115,7 @@ static void ot200_led_brightness_set(struct led_classdev *led_cdev,
115 spin_unlock_irqrestore(&value_lock, flags); 115 spin_unlock_irqrestore(&value_lock, flags);
116} 116}
117 117
118static int __devinit ot200_led_probe(struct platform_device *pdev) 118static int ot200_led_probe(struct platform_device *pdev)
119{ 119{
120 int i; 120 int i;
121 int ret; 121 int ret;
diff --git a/drivers/leds/leds-pca955x.c b/drivers/leds/leds-pca955x.c
index 12506e74a4c5..f07c5203fbd5 100644
--- a/drivers/leds/leds-pca955x.c
+++ b/drivers/leds/leds-pca955x.c
@@ -255,7 +255,7 @@ static void pca955x_led_set(struct led_classdev *led_cdev, enum led_brightness v
255 schedule_work(&pca955x->work); 255 schedule_work(&pca955x->work);
256} 256}
257 257
258static int __devinit pca955x_probe(struct i2c_client *client, 258static int pca955x_probe(struct i2c_client *client,
259 const struct i2c_device_id *id) 259 const struct i2c_device_id *id)
260{ 260{
261 struct pca955x *pca955x; 261 struct pca955x *pca955x;
diff --git a/drivers/leds/leds-pca9633.c b/drivers/leds/leds-pca9633.c
index 0685f343ff18..d55bd8dc4813 100644
--- a/drivers/leds/leds-pca9633.c
+++ b/drivers/leds/leds-pca9633.c
@@ -93,7 +93,7 @@ static void pca9633_led_set(struct led_classdev *led_cdev,
93 schedule_work(&pca9633->work); 93 schedule_work(&pca9633->work);
94} 94}
95 95
96static int __devinit pca9633_probe(struct i2c_client *client, 96static int pca9633_probe(struct i2c_client *client,
97 const struct i2c_device_id *id) 97 const struct i2c_device_id *id)
98{ 98{
99 struct pca9633_led *pca9633; 99 struct pca9633_led *pca9633;
diff --git a/drivers/leds/leds-rb532.c b/drivers/leds/leds-rb532.c
index e34f1ff4e8ce..43f02f4a1953 100644
--- a/drivers/leds/leds-rb532.c
+++ b/drivers/leds/leds-rb532.c
@@ -37,7 +37,7 @@ static struct led_classdev rb532_uled = {
37 .default_trigger = "nand-disk", 37 .default_trigger = "nand-disk",
38}; 38};
39 39
40static int __devinit rb532_led_probe(struct platform_device *pdev) 40static int rb532_led_probe(struct platform_device *pdev)
41{ 41{
42 return led_classdev_register(&pdev->dev, &rb532_uled); 42 return led_classdev_register(&pdev->dev, &rb532_uled);
43} 43}
diff --git a/drivers/leds/leds-regulator.c b/drivers/leds/leds-regulator.c
index 521af9b4e299..adb33f7c73ad 100644
--- a/drivers/leds/leds-regulator.c
+++ b/drivers/leds/leds-regulator.c
@@ -140,7 +140,7 @@ static void regulator_led_brightness_set(struct led_classdev *led_cdev,
140 schedule_work(&led->work); 140 schedule_work(&led->work);
141} 141}
142 142
143static int __devinit regulator_led_probe(struct platform_device *pdev) 143static int regulator_led_probe(struct platform_device *pdev)
144{ 144{
145 struct led_regulator_platform_data *pdata = pdev->dev.platform_data; 145 struct led_regulator_platform_data *pdata = pdev->dev.platform_data;
146 struct regulator_led *led; 146 struct regulator_led *led;
diff --git a/drivers/leds/leds-renesas-tpu.c b/drivers/leds/leds-renesas-tpu.c
index 71cab56a67aa..053e45763f3c 100644
--- a/drivers/leds/leds-renesas-tpu.c
+++ b/drivers/leds/leds-renesas-tpu.c
@@ -238,7 +238,7 @@ static void r_tpu_set_brightness(struct led_classdev *ldev,
238 schedule_work(&p->work); 238 schedule_work(&p->work);
239} 239}
240 240
241static int __devinit r_tpu_probe(struct platform_device *pdev) 241static int r_tpu_probe(struct platform_device *pdev)
242{ 242{
243 struct led_renesas_tpu_config *cfg = pdev->dev.platform_data; 243 struct led_renesas_tpu_config *cfg = pdev->dev.platform_data;
244 struct r_tpu_priv *p; 244 struct r_tpu_priv *p;
diff --git a/drivers/leds/leds-ss4200.c b/drivers/leds/leds-ss4200.c
index 57371e1485ab..6469849e8266 100644
--- a/drivers/leds/leds-ss4200.c
+++ b/drivers/leds/leds-ss4200.c
@@ -263,7 +263,7 @@ static int nasgpio_led_set_blink(struct led_classdev *led_cdev,
263 * already taken care of this, but we will do so in a non destructive manner 263 * already taken care of this, but we will do so in a non destructive manner
264 * so that we have what we need whether the BIOS did it or not. 264 * so that we have what we need whether the BIOS did it or not.
265 */ 265 */
266static int __devinit ich7_gpio_init(struct device *dev) 266static int ich7_gpio_init(struct device *dev)
267{ 267{
268 int i; 268 int i;
269 u32 config_data = 0; 269 u32 config_data = 0;
@@ -342,7 +342,7 @@ static void ich7_lpc_cleanup(struct device *dev)
342 * so we can retrive the required operational information and prepare the GPIO. 342 * so we can retrive the required operational information and prepare the GPIO.
343 */ 343 */
344static struct pci_dev *nas_gpio_pci_dev; 344static struct pci_dev *nas_gpio_pci_dev;
345static int __devinit ich7_lpc_probe(struct pci_dev *dev, 345static int ich7_lpc_probe(struct pci_dev *dev,
346 const struct pci_device_id *id) 346 const struct pci_device_id *id)
347{ 347{
348 int status; 348 int status;
diff --git a/drivers/leds/leds-sunfire.c b/drivers/leds/leds-sunfire.c
index 3d35c5861146..f72886e08c22 100644
--- a/drivers/leds/leds-sunfire.c
+++ b/drivers/leds/leds-sunfire.c
@@ -123,7 +123,7 @@ struct sunfire_drvdata {
123 struct sunfire_led leds[NUM_LEDS_PER_BOARD]; 123 struct sunfire_led leds[NUM_LEDS_PER_BOARD];
124}; 124};
125 125
126static int __devinit sunfire_led_generic_probe(struct platform_device *pdev, 126static int sunfire_led_generic_probe(struct platform_device *pdev,
127 struct led_type *types) 127 struct led_type *types)
128{ 128{
129 struct sunfire_drvdata *p; 129 struct sunfire_drvdata *p;
@@ -192,7 +192,7 @@ static struct led_type clockboard_led_types[NUM_LEDS_PER_BOARD] = {
192 }, 192 },
193}; 193};
194 194
195static int __devinit sunfire_clockboard_led_probe(struct platform_device *pdev) 195static int sunfire_clockboard_led_probe(struct platform_device *pdev)
196{ 196{
197 return sunfire_led_generic_probe(pdev, clockboard_led_types); 197 return sunfire_led_generic_probe(pdev, clockboard_led_types);
198} 198}
@@ -213,7 +213,7 @@ static struct led_type fhc_led_types[NUM_LEDS_PER_BOARD] = {
213 }, 213 },
214}; 214};
215 215
216static int __devinit sunfire_fhc_led_probe(struct platform_device *pdev) 216static int sunfire_fhc_led_probe(struct platform_device *pdev)
217{ 217{
218 return sunfire_led_generic_probe(pdev, fhc_led_types); 218 return sunfire_led_generic_probe(pdev, fhc_led_types);
219} 219}
diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c
index 1172b4a264e8..9acec6130494 100644
--- a/drivers/leds/leds-tca6507.c
+++ b/drivers/leds/leds-tca6507.c
@@ -667,7 +667,7 @@ static void tca6507_remove_gpio(struct tca6507_chip *tca)
667} 667}
668#endif /* CONFIG_GPIOLIB */ 668#endif /* CONFIG_GPIOLIB */
669 669
670static int __devinit tca6507_probe(struct i2c_client *client, 670static int tca6507_probe(struct i2c_client *client,
671 const struct i2c_device_id *id) 671 const struct i2c_device_id *id)
672{ 672{
673 struct tca6507_chip *tca; 673 struct tca6507_chip *tca;