diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2015-06-26 12:00:20 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2015-06-29 10:07:45 -0700 |
commit | 58d1809b9d6128224e092bfaf7632bcef7a15f3e (patch) | |
tree | 5bd0391508ac8464eabde32d97cd566acd626f6d /drivers/leds/Kconfig | |
parent | 8a687719d03131f656d5eb9a578ba3764f31ddab (diff) | |
download | lwn-58d1809b9d6128224e092bfaf7632bcef7a15f3e.tar.gz lwn-58d1809b9d6128224e092bfaf7632bcef7a15f3e.zip |
leds: fix aat1290 build errors
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>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r-- | drivers/leds/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index b04f82c113f2..1ef751e35a2f 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -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 |