diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-04-06 12:52:53 +0200 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-04-17 16:29:31 +0200 |
commit | 5509fea59bb1bad4ead7d9a194cb4555c1350e1c (patch) | |
tree | 74f654f30d5ee0fd56de3ddfb7b759753c4a92bc /drivers/leds | |
parent | ee9dd7631af6fb5c02964ed5b496217cd4ced059 (diff) | |
download | linux-5509fea59bb1bad4ead7d9a194cb4555c1350e1c.tar.gz linux-5509fea59bb1bad4ead7d9a194cb4555c1350e1c.tar.bz2 linux-5509fea59bb1bad4ead7d9a194cb4555c1350e1c.zip |
leds-atmel-pwm.c: Make pwmled_probe() __devinit
Commit 892a884 (leds: convert led platform drivers to module_platform_driver)
is omitting the section mismatch error: so change annotation of the probe
function to __devinit instead of __init.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-atmel-pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-atmel-pwm.c b/drivers/leds/leds-atmel-pwm.c index 800243b6037e..64ad702a2ecc 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) * NOTE: we reuse the platform_data structure of GPIO leds, * but repurpose its "gpio" number as a PWM channel number. */ -static int __init pwmled_probe(struct platform_device *pdev) +static int __devinit pwmled_probe(struct platform_device *pdev) { const struct gpio_led_platform_data *pdata; struct pwmled *leds; |