aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-gpio.c
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/leds-gpio.c
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/leds-gpio.c')
-rw-r--r--drivers/leds/leds-gpio.c8
1 files changed, 4 insertions, 4 deletions
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;