ASoC: fsl: clarify ac97 dependency
authorArnd Bergmann <arnd@arndb.de>
Tue, 24 Nov 2015 22:21:10 +0000 (23:21 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 25 Nov 2015 11:56:10 +0000 (11:56 +0000)
commitd453b1fbc27a26c02a5dbde35b93a85f53df391f
treeeed3294ea693b8afb52c770cb4c0ae4094224660
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
ASoC: fsl: clarify ac97 dependency

A new randconfig build failure shows that the fsl-asoc-card module
must not be built-in when the AC97 driver is a loadable module:

sound/built-in.o: In function `fsl_asoc_card_late_probe':
:(.text+0x571d8): undefined reference to `snd_ac97_update_bits'

I couldn't come up with a nice solution, so this adds another dependency
on "X || !X", which is the Kconfig way of saying that we have an
optional dependency on something that might be a loadable module.

Fixes: 87c649eada2e ("ASoC: fsl-asoc-card: add AC'97 support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/Kconfig