leds: ipaq needs LEDS_CLASS
PATCH RESEND 1/1 leds: ipaq needs LEDS_CLASS
All other drivers have a dependency on this already, but this one does not, which can lead to a link error when LEDS_CLASS is not set.
drivers/built-in.o: In function `micro_leds_remove':
:(.text+0x13d1bc): undefined reference to led_classdev_unregister' drivers/built-in.o: In function micro_leds_probe':
:(.text+0x13d3d0): undefined reference to `led_classdev_register'
This patch adds the missing dependency.
Signed-off-by Arnd Bergmann <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
----
Originally sent on 2015-01-28, but has not appeared in linux-next
drivers/leds/Kconfig +1 -0
@@ -144,6 +144,7 @@ config LEDS_SUNFIRE config LEDS_IPAQ_MICRO tristate "LED Support for the Compaq iPAQ h3xxx" + depends on LEDS_CLASS depends on MFD_IPAQ_MICRO help Choose this option if you want to use the notification LED on