From: Axel Lin Date: Wed, 15 Jun 2011 22:08:31 +0000 (-0700) Subject: drivers/leds/leds-asic3: make LEDS_ASIC3 depend on LEDS_CLASS X-Git-Tag: v3.0-rc4~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d8f776bfb812dd23fcdbb698e9ac4298fc3c624;p=profile%2Fcommon%2Fkernel-common.git drivers/leds/leds-asic3: make LEDS_ASIC3 depend on LEDS_CLASS We call led_classdev_unregister/led_classdev_register in asic3_led_remove/asic3_led_probe, thus make LEDS_ASIC3 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 `asic3_led_remove': clkdev.c:(.devexit.text+0x1860): undefined reference to `led_classdev_unregister' drivers/built-in.o: In function `asic3_led_probe': clkdev.c:(.devinit.text+0xcee8): undefined reference to `led_classdev_register' make: *** [.tmp_vmlinux1] Error 1 Signed-off-by: Axel Lin Cc: Paul Parsons Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 23f0d5e..883813d 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -391,6 +391,7 @@ config LEDS_NETXBIG config LEDS_ASIC3 bool "LED support for the HTC ASIC3" + depends on LEDS_CLASS depends on MFD_ASIC3 default y help