• YueHaibing's avatar
    ASoC: wm89xx: Add missing dependency · 9bff3d30
    YueHaibing authored
    sound/soc/codecs/wm8900.o: In function `wm8900_i2c_probe':
    wm8900.c:(.text+0xa36): undefined reference to `__devm_regmap_init_i2c'
    sound/soc/codecs/wm8900.o: In function `wm8900_modinit':
    wm8900.c:(.init.text+0xb): undefined reference to `i2c_register_driver'
    sound/soc/codecs/wm8900.o: In function `wm8900_exit':
    wm8900.c:(.exit.text+0x8): undefined reference to `i2c_del_driver'
    sound/soc/codecs/wm8988.o: In function `wm8988_i2c_probe':
    wm8988.c:(.text+0x857): undefined reference to `__devm_regmap_init_i2c'
    sound/soc/codecs/wm8988.o: In function `wm8988_modinit':
    wm8988.c:(.init.text+0xb): undefined reference to `i2c_register_driver'
    sound/soc/codecs/wm8988.o: In function `wm8988_exit':
    wm8988.c:(.exit.text+0x8): undefined reference to `i2c_del_driver'
    sound/soc/codecs/wm8995.o: In function `wm8995_i2c_probe':
    wm8995.c:(.text+0x1c4f): undefined reference to `__devm_regmap_init_i2c'
    sound/soc/codecs/wm8995.o: In function `wm8995_modinit':
    wm8995.c:(.init.text+0xb): undefined reference to `i2c_register_driver'
    sound/soc/codecs/wm8995.o: In function `wm8995_exit':
    wm8995.c:(.exit.text+0x8): undefined reference to `i2c_del_driver'
    
    Add SND_SOC_I2C_AND_SPI dependency to fix this.
    
    Fixes: ea00d952 ("ASoC: Use imply for SND_SOC_ALL_CODECS")
    Reported-by: default avatarHulk Robot <hulkci@huawei.com>
    Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
    Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
    Link: https://lore.kernel.org/r/20200420125343.20920-1-yuehaibing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    9bff3d30
Kconfig 35.8 KB