From: Wei Yongjun Date: Mon, 28 Jul 2014 13:15:24 +0000 (-0700) Subject: leds: ipaq-micro: fix sparse non static symbol warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e661c8978e4833d4148d08b405a2f3175d6f97d9;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git leds: ipaq-micro: fix sparse non static symbol warning Fixes the following sparse warnings: drivers/leds/leds-ipaq-micro.c:130:24: warning: symbol 'micro_leds_device_driver' was not declared. Should it be static? Signed-off-by: Wei Yongjun Signed-off-by: Bryan Wu --- diff --git a/drivers/leds/leds-ipaq-micro.c b/drivers/leds/leds-ipaq-micro.c index 3210a47f0812..3776f516cd88 100644 --- a/drivers/leds/leds-ipaq-micro.c +++ b/drivers/leds/leds-ipaq-micro.c @@ -127,7 +127,7 @@ static int micro_leds_remove(struct platform_device *pdev) return 0; } -struct platform_driver micro_leds_device_driver = { +static struct platform_driver micro_leds_device_driver = { .driver = { .name = "ipaq-micro-leds", },