Skip to content

Commit c3c38e8

Browse files
arndblag-linaro
authored andcommitted
leds: tps6131x: Add V4L2_FLASH_LED_CLASS dependency
This driver can optionally use the v4l2_flash infrastructure, but fails to link built=in if that is in a loadable module: ld.lld-21: error: undefined symbol: v4l2_flash_release >>> referenced by leds-tps6131x.c:792 (drivers/leds/flash/leds-tps6131x.c:792) Add the usual Kconfig dependency for it, still allowing it to be built when CONFIG_V4L2_FLASH_LED_CLASS is disabled. Fixes: b338a2a ("leds: tps6131x: Add support for Texas Instruments TPS6131X flash LED driver") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 1d7a74d commit c3c38e8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/leds/flash/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ config LEDS_TPS6131X
136136
tristate "LED support for TI TPS6131x flash LED driver"
137137
depends on I2C && OF
138138
depends on GPIOLIB
139+
depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
139140
select REGMAP_I2C
140141
help
141142
This option enables support for Texas Instruments TPS61310/TPS61311

0 commit comments

Comments
 (0)