aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-06-10 09:20:44 -0400
committerMark Brown <broonie@linaro.org>2013-06-12 11:23:40 -0400
commit4119c0c0c6e4508236672c3ec714da25eed783ce (patch)
tree2dd8abd3fa30f524a46b4d6168b8b84ca805df96
parent317ddd256b9c24b0d78fa8018f80f1e495481a10 (diff)
ASoC: adav80x: Select SND_SOC_ADAV80X if SND_SOC_I2C_AND_SPI
This driver is useless if both SPI and I2C are not configured. Thus don't build this driver if both SPI and I2C are not configured. This patch silences below build warning if both SPI and I2C are not configured. CC sound/soc/codecs/adav80x.o sound/soc/codecs/adav80x.c:842:12: warning: 'adav80x_bus_probe' defined but not used [-Wunused-function] sound/soc/codecs/adav80x.c:863:12: warning: 'adav80x_bus_remove' defined but not used [-Wunused-function] Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/codecs/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 2f45f00e31b0..5841674b6993 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -19,7 +19,7 @@ config SND_SOC_ALL_CODECS
19 select SND_SOC_AD1980 if SND_SOC_AC97_BUS 19 select SND_SOC_AD1980 if SND_SOC_AC97_BUS
20 select SND_SOC_AD73311 20 select SND_SOC_AD73311
21 select SND_SOC_ADAU1373 if I2C 21 select SND_SOC_ADAU1373 if I2C
22 select SND_SOC_ADAV80X 22 select SND_SOC_ADAV80X if SND_SOC_I2C_AND_SPI
23 select SND_SOC_ADS117X 23 select SND_SOC_ADS117X
24 select SND_SOC_AK4104 if SPI_MASTER 24 select SND_SOC_AK4104 if SPI_MASTER
25 select SND_SOC_AK4535 if I2C 25 select SND_SOC_AK4535 if I2C