ASoC: tlv320aic23: add dependencies on I2C/SPI_MASTER
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 3 Nov 2014 10:10:53 +0000 (13:10 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 3 Nov 2014 11:31:34 +0000 (11:31 +0000)
This fixes build errors in configurations with I2C/SPI master disabled.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig

index 7881b3c35b4d330e60665894eb1d959e1fa348eb..1e7a4173a3f921da9ca6237de48debce2a1985fd 100644 (file)
@@ -582,10 +582,12 @@ config SND_SOC_TLV320AIC23
 
 config SND_SOC_TLV320AIC23_I2C
        tristate "Texas Instruments TLV320AIC23 audio CODEC - I2C"
+       depends on I2C
        select SND_SOC_TLV320AIC23
 
 config SND_SOC_TLV320AIC23_SPI
        tristate "Texas Instruments TLV320AIC23 audio CODEC - SPI"
+       depends on SPI_MASTER
        select SND_SOC_TLV320AIC23
 
 config SND_SOC_TLV320AIC26