leds: fix aat1290 build errors
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 26 Jun 2015 19:00:20 +0000 (12:00 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 29 Jun 2015 17:07:45 +0000 (10:07 -0700)
Fix build errors when LEDS_AAT1290=y and V4L2_FLASH_LED_CLASS=m
by restricting LEDS_AAT1290 to =m if V4L2_FLASH_LED_CLASS=m.

drivers/built-in.o: In function `aat1290_led_remove':
leds-aat1290.c:(.text+0xe5d77): undefined reference to `v4l2_flash_release'
drivers/built-in.o: In function `aat1290_led_probe':
leds-aat1290.c:(.text+0xe6494): undefined reference to `v4l2_flash_init'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/Kconfig

index b04f82c113f22432409a03c4aeaab08bb0049ea1..1ef751e35a2f93261aa3bf9c4d7f19919fc6f283 100644 (file)
@@ -45,6 +45,7 @@ config LEDS_88PM860X
 config LEDS_AAT1290
        tristate "LED support for the AAT1290"
        depends on LEDS_CLASS_FLASH
+       depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
        depends on GPIOLIB
        depends on OF
        depends on PINCTRL