Skip to contentSkip to conversation

ASoC: tlv320aic23: depends on SPI

PATCH In review Sudip Mukherjee 2 participants 2 messages Nov 3, 2014 – Nov 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: tlv320aic23: depends on SPI

Fix build errors when CONFIG_SPI is not enabled by making the driver depend on SPI.

ERROR: "spi_setup" [sound/soc/codecs/snd-soc-tlv320aic23-spi.ko] undefined!
ERROR: "devm_regmap_init_spi" [sound/soc/codecs/snd-soc-tlv320aic23-spi.ko] undefined!
ERROR: "spi_register_driver" [sound/soc/codecs/snd-soc-tlv320aic23-spi.ko] undefined!

---

reference of mail by Jim Davis at https://lkml.org/lkml/2014/11/3/551

 sound/soc/codecs/Kconfig | 1 +
1 file changed, 1 insertion(+)
sound/soc/codecs/Kconfig +1 -0
index 6801b38..9a8ea56 100644
@@ -603,6 +603,7 @@ config SND_SOC_TLV320AIC23_I2C
 
 config SND_SOC_TLV320AIC23_SPI
 	tristate "Texas Instruments TLV320AIC23 audio CODEC - SPI"
+	depends on SPI
 	select SND_SOC_TLV320AIC23
 
 config SND_SOC_TLV320AIC26
Signature · 1 line
1.8.1.2
maintainer
#1 lore raw
Quoted 2 lines · Sudip Mukherjee

Fix build errors when CONFIG_SPI is not enabled by making the driver depend on SPI.

A version of this patch has already been applied.