]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: gtm601: fix build warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Jan 2020 21:48:35 +0000 (22:48 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jan 2020 22:29:38 +0000 (22:29 +0000)
commitd1cc9fc3f4d2962506fd81aef48c64d5a389d0e0
tree906f238f29d790ff3db71db5a95e7045547bd5e3
parent05689a0439ce6226d0b999db6371b3a34a57093b
ASoC: gtm601: fix build warning

The driver produces warnings without CONFIG_OF, and makes
no sense without it either:

sound/soc/codecs/gtm601.c:50:34: error: 'bm818_dai' defined but not used [-Werror=unused-variable]
 static struct snd_soc_dai_driver bm818_dai = {
                                  ^~~~~~~~~
sound/soc/codecs/gtm601.c:32:34: error: 'gtm601_dai' defined but not used [-Werror=unused-variable]
 static struct snd_soc_dai_driver gtm601_dai = {
                                  ^~~~~~~~~~

Remove the #ifdef check to avoid the warning.

Fixes: dcaf9bff132e ("ASoC: gtm601: add Broadmobi bm818 sound profile")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200107214846.1284981-1-arnd@arndb.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/gtm601.c