linux/sound/soc/mediatek
YueHaibing f2a1fdb50d
ASoC: Mediatek: MT8183: Fix build err while CONFIG_I2C set to module
During randconfig builds, I occasionally run into an invalid configuration

WARNING: unmet direct dependencies detected for SND_SOC_TS3A227E
  Depends on [m]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && I2C [=m]
  Selected by [y]:
  - SND_SOC_MT8183_MT6358_TS3A227E_MAX98357A [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_MT8183 [=y]

sound/soc/codecs/ts3a227e.o: In function `ts3a227e_i2c_probe':
ts3a227e.c:(.text+0x684): undefined reference to `__devm_regmap_init_i2c'
sound/soc/codecs/ts3a227e.o: In function `ts3a227e_driver_init':
ts3a227e.c:(.init.text+0x18): undefined reference to `i2c_register_driver'
sound/soc/codecs/ts3a227e.o: In function `ts3a227e_driver_exit':
ts3a227e.c:(.exit.text+0x14): undefined reference to `i2c_del_driver'

This patch add I2C dependency to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: ebbddc75bb ("ASoC: Mediatek: MT8183: Add machine driver with DA7219")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-02 10:45:59 +09:00
..
common Merge branch 'asoc-5.1' into asoc-5.2 2019-04-26 11:02:03 +01:00
mt2701 ASoC: mediatek: Fix UBSAN warning. 2019-03-19 12:51:13 +00:00
mt6797 ASoC: mediatek: Fix UBSAN warning. 2019-03-19 12:51:13 +00:00
mt8173 ASoC: mediatek: Fix UBSAN warning. 2019-03-19 12:51:13 +00:00
mt8183 ASoC: Mediatek: MT8183: Fix platform_no_drv_owner.cocci warnings 2019-04-04 12:50:58 +07:00
Kconfig ASoC: Mediatek: MT8183: Fix build err while CONFIG_I2C set to module 2019-05-02 10:45:59 +09:00
Makefile ASoC: mediatek: mt8183: add platform driver 2019-01-25 18:05:10 +00:00