summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-15 22:42:50 +0100
committerMark Brown <broonie@kernel.org>2016-03-16 08:46:14 +0000
commitaf139d5592bc812e7a1997727172ddba3e6be968 (patch)
tree743b891e2d2bff51bcb56033484aa1bf828d9422 /sound
parentd4a6360f19c1c551afcba42be98df04651fab31b (diff)
downloadlinux-stable-af139d5592bc812e7a1997727172ddba3e6be968.tar.gz
linux-stable-af139d5592bc812e7a1997727172ddba3e6be968.tar.bz2
linux-stable-af139d5592bc812e7a1997727172ddba3e6be968.zip
ASoC: rt5616: add I2C dependency
The rt5616 codec registers itself as an i2c driver, but can be enabled even when i2c is turned off, which leads to a build error: codecs/rt5616.c:1419:1: error: data definition has no type or storage class [-Werror] module_i2c_driver(rt5616_i2c_driver); This adds an explicit Kconfig dependency, like the other codec drivers. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 288bc356a881 ("ASoC: rt5616: allow to build with CONFIG_SND_SOC_RT5616") Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 649e92a252ae..7ef3a0c16478 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -629,6 +629,7 @@ config SND_SOC_RT5514
config SND_SOC_RT5616
tristate "Realtek RT5616 CODEC"
+ depends on I2C
config SND_SOC_RT5631
tristate "Realtek ALC5631/RT5631 CODEC"