From: Zhenwen Xu Date: Wed, 10 Jun 2009 19:48:51 +0000 (-0700) Subject: leds: leds-gpio - fix a section mismatch X-Git-Tag: v2.6.31-rc2~79^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fd02170e25b3b60fc21cd7b64bf1ed42e6a7cbe;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Andrew Morton Signed-off-by: Richard Purdie --- diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index d210905..76895e6 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) } #ifdef CONFIG_LEDS_GPIO_PLATFORM -static int gpio_led_probe(struct platform_device *pdev) +static int __devinit gpio_led_probe(struct platform_device *pdev) { struct gpio_led_platform_data *pdata = pdev->dev.platform_data; struct gpio_led_data *leds_data;