Re: [PATCH -next] leds: ipaq-micro: fix sparse non static symbol warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 28, 2014 at 6:15 AM,  <weiyj_lk@xxxxxxx> wrote:
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
>
> 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?
>

Good catch, applied.
Thanks,
-Bryan

> Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
> ---
>  drivers/leds/leds-ipaq-micro.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/leds/leds-ipaq-micro.c b/drivers/leds/leds-ipaq-micro.c
> index 3210a47..3776f51 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",
>         },
>
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux