leds: Make LEDS_ASIC3 and LEDS_RENESAS_TPU depend on LEDS_CLASS=y
authorAxel Lin <axel.lin@gmail.com>
Fri, 8 Jun 2012 23:41:42 +0000 (07:41 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Tue, 12 Jun 2012 02:56:25 +0000 (10:56 +0800)
commit9473c4c16700ec965904f23234fd0f8677ce6231
tree2ccd49d9225fa365b1639bb56cacb79bb9b47ddc
parent9cd5ec5e5447f99ffb33ce39c1fcd0e3306e11d1
leds: Make LEDS_ASIC3 and LEDS_RENESAS_TPU depend on LEDS_CLASS=y

Otherwise, I got below build error when CONFIG_LEDS_CLASS=m.

  LD      init/built-in.o
drivers/built-in.o: In function `asic3_led_probe':
clkdev.c:(.devinit.text+0x4680): undefined reference to `led_classdev_register'
drivers/built-in.o: In function `r_tpu_probe':
clkdev.c:(.devinit.text+0x4838): undefined reference to `led_classdev_register'
drivers/built-in.o: In function `asic3_led_remove':
clkdev.c:(.devexit.text+0x564): undefined reference to `led_classdev_unregister'
drivers/built-in.o: In function `r_tpu_remove':
clkdev.c:(.devexit.text+0x5a0): undefined reference to `led_classdev_unregister'
make: *** [vmlinux] Error 1

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/Kconfig