aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorZhenwen Xu <helight.xu@gmail.com>2009-06-10 15:48:51 -0400
committerRichard Purdie <rpurdie@linux.intel.com>2009-06-23 15:20:11 -0400
commit7fd02170e25b3b60fc21cd7b64bf1ed42e6a7cbe (patch)
tree9a4f0c8187f702027dc79f073df6f01ebb91bafe /drivers/leds
parent8792f7cf4368f9bc337eee65851d8e7abbbf946c (diff)
leds: leds-gpio - fix a section mismatch
WARNING: drivers/leds/leds-gpio.o(.text+0x153): Section mismatch in reference from the function gpio_led_probe() to the function .devinit.text:create_gpio_led() The function gpio_led_probe() references the function __devinit create_gpio_led(). This is often because gpio_led_probe lacks a __devinit annotation or the annotation of create_gpio_led is wrong. Signed-off-by: Zhenwen Xu <helight.xu@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index d2109054de85..76895e691042 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -129,7 +129,7 @@ static void delete_gpio_led(struct gpio_led_data *led)
129} 129}
130 130
131#ifdef CONFIG_LEDS_GPIO_PLATFORM 131#ifdef CONFIG_LEDS_GPIO_PLATFORM
132static int gpio_led_probe(struct platform_device *pdev) 132static int __devinit gpio_led_probe(struct platform_device *pdev)
133{ 133{
134 struct gpio_led_platform_data *pdata = pdev->dev.platform_data; 134 struct gpio_led_platform_data *pdata = pdev->dev.platform_data;
135 struct gpio_led_data *leds_data; 135 struct gpio_led_data *leds_data;