diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-06-29 16:45:23 +0200 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2015-06-29 19:09:12 +0200 |
commit | 10c19c9eb2f0d5a99cb1ab68186482fcd3eeac6d (patch) | |
tree | 5927ec544633faeeb1c7b394cf13f41d184528bc /drivers/leds | |
parent | leds: fix aat1290 build errors (diff) | |
download | linux-10c19c9eb2f0d5a99cb1ab68186482fcd3eeac6d.tar.xz linux-10c19c9eb2f0d5a99cb1ab68186482fcd3eeac6d.zip |
leds: fix max77693-led build errors
Fix build errors when LEDS_MAX77693=y and V4L2_FLASH_LED_CLASS=m
by restricting LEDS_MAX77693 to =m if V4L2_FLASH_LED_CLASS=m.
drivers/leds/leds-max77693.c:1062: undefined reference to `v4l2_flash_release'
drivers/leds/leds-max77693.c:1068: undefined reference to `v4l2_flash_release'
drivers/built-in.o: In function `max77693_register_led':
drivers/leds/leds-max77693.c:968: undefined reference to `v4l2_flash_init'
drivers/built-in.o: In function `max77693_led_probe':
drivers/leds/leds-max77693.c:1048: undefined reference to `v4l2_flash_release'
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds')
-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 1ef751e35a2f..d97ee24a774f 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -504,6 +504,7 @@ config LEDS_TLC591XX config LEDS_MAX77693 tristate "LED support for MAX77693 Flash" depends on LEDS_CLASS_FLASH + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS depends on MFD_MAX77693 depends on OF help |