]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci: vcif must be a module if SND_DAVINCI_SOC is
authorArnd Bergmann <arnd@arndb.de>
Mon, 29 Sep 2014 15:32:17 +0000 (17:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Sep 2014 16:12:05 +0000 (17:12 +0100)
commit1d3e2f2a1e59a504982db69cbb16839b802d31ba
tree5b3e7e0abf1ec0c671bf4346694f6f16277d55f4
parentf45f9587f1dd1e89dd1c89561c9572f777c5bcb7
ASoC: davinci: vcif must be a module if SND_DAVINCI_SOC is

It is possible to configure a kernel with SND_DAVINCI_SOC=m and
SND_DM365_VOICE_CODEC=y, which results in a link error:

sound/built-in.o: In function `davinci_vcif_probe':
sound/soc/davinci/davinci-vcif.c:223: undefined reference to `davinci_soc_platform_register'

The best way to avoid this is to make SND_DM365_VOICE_CODEC
a tristate option that depends on SND_DAVINCI_SOC, so it
can only be a module or disabled when the base driver is
a loadable module

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/Kconfig