ASoC: wm8985: add i2c dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 13 Jun 2016 15:39:42 +0000 (17:39 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jun 2016 16:44:16 +0000 (17:44 +0100)
commit05252513fbb9874a292a78aa577e5d42bb4d5ad0
tree57a778aca8967af710915603f97201abc706152a
parent811e66de2241e249bad03a9e9681d3ac68b07ec3
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 <arnd@arndb.de>
Fixes: 811e66de2241 ("ASoC: wm8985: add support for WM8758")
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig