Re: [PATCH] drivers/leds/leds-netxbig: make LEDS_NETXBIG depend onLEDS_CLASS
From: Simon Guinot
Date: Sat Jul 09 2011 - 11:42:21 EST
On Sat, Jul 09, 2011 at 11:07:18PM +0800, Axel Lin wrote:
> We call led_classdev_register/led_classdev_unregister in
> create_netxbig_led/delete_netxbig_led, thus make LEDS_NETXBIG
> depend on LEDS_CLASS.
>
> This patch fixes below build error if LEDS_CLASS is not configured.
>
> LD .tmp_vmlinux1
> drivers/built-in.o: In function `create_netxbig_led':
> drivers/leds/leds-netxbig.c:350: undefined reference to `led_classdev_register'
> drivers/leds/leds-netxbig.c:361: undefined reference to `led_classdev_unregister'
> drivers/built-in.o: In function `delete_netxbig_led':
> drivers/leds/leds-netxbig.c:313: undefined reference to `led_classdev_unregister'
> make: *** [.tmp_vmlinux1] Error 1
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
Acked-by: Simon Guinot <sguinot@xxxxxxxxx>
Thanks,
Simon
Attachment:
signature.asc
Description: Digital signature