Skip to content

Commit 0525251

Browse files
arndbbroonie
authored andcommitted
ASoC: wm8985: add i2c dependency
The wm8985 driver is now user-selectable, but building it with I2C disabled results in a link failure: sound/built-in.o: In function `wm8985_i2c_probe': :(.text+0x44914): undefined reference to `__devm_regmap_init_i2c' sound/built-in.o: In function `wm8985_exit': :(.exit.text+0x3d8): undefined reference to `i2c_del_driver' sound/built-in.o: In function `wm8985_modinit': :(.init.text+0x1454): undefined reference to `i2c_register_driver' This adds a Kconfig dependency the way that the other codec drivers have it. Signed-off-by: Arnd Bergmann <[email protected]> Fixes: 811e66d ("ASoC: wm8985: add support for WM8758") Signed-off-by: Mark Brown <[email protected]>
1 parent 811e66d commit 0525251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/codecs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ config SND_SOC_WM8983
945945

946946
config SND_SOC_WM8985
947947
tristate "Wolfson Microelectronics WM8985 and WM8758 codec driver"
948+
depends on I2C
948949

949950
config SND_SOC_WM8988
950951
tristate

0 commit comments

Comments
 (0)