linux/sound/soc/mediatek/mt8195
YueHaibing 0e63a2be56
ASoC: mediatek: mt8195: Fix build warning without CONFIG_OF
sound/soc/mediatek/mt8195/mt8195-mt6359.c:1639:32: warning: ‘mt8195_mt6359_max98390_rt5682_card’ defined but not used [-Wunused-variable]
 1639 | static struct mt8195_card_data mt8195_mt6359_max98390_rt5682_card = {
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/mediatek/mt8195/mt8195-mt6359.c:1634:32: warning: ‘mt8195_mt6359_rt1011_rt5682_card’ defined but not used [-Wunused-variable]
 1634 | static struct mt8195_card_data mt8195_mt6359_rt1011_rt5682_card = {
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/mediatek/mt8195/mt8195-mt6359.c:1629:32: warning: ‘mt8195_mt6359_rt1019_rt5682_card’ defined but not used [-Wunused-variable]
 1629 | static struct mt8195_card_data mt8195_mt6359_rt1019_rt5682_card = {
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Since all users of this driver do need CONFIG_OF anyway, there is no
need to save a few bytes on kernel builds while CONFIG_OF disabled, so
just remove the #ifdef to fix this warning.

Fixes: 86a6b9c9df ("ASoC: mediatek: mt8195: add machine support for max98390 and rt5682")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20220509120918.9000-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-05-09 19:04:37 +01:00
..
Makefile ASoC: mediatek: mt8195: merge machine driver 2022-04-04 08:39:38 +01:00
mt8195-afe-clk.c ASoC: mediatek: mt8195: enable apll tuner 2022-02-21 13:24:56 +00:00
mt8195-afe-clk.h ASoC: mediatek: mt8195: enable apll tuner 2022-02-21 13:24:56 +00:00
mt8195-afe-common.h ASoC: mediatek: mt8195: add platform driver 2021-08-24 19:13:56 +01:00
mt8195-afe-pcm.c ASoC: mediatek: mt8195: add reset controller 2022-03-11 13:41:12 +00:00
mt8195-audsys-clk.c ASoC: mediatek: mt8195: update audsys clock parent name 2021-10-08 17:22:50 +01:00
mt8195-audsys-clk.h
mt8195-audsys-clkid.h
mt8195-dai-adda.c ASoC: mediatek: mt8195: make array adda_dai_list static const 2021-09-15 13:12:27 +01:00
mt8195-dai-etdm.c ASoC: mediatek: mt8195: fix return value 2021-10-27 11:31:15 +01:00
mt8195-dai-pcm.c ASoC: mediatek: simplify the return expression of mtk_dai_pcm_prepare() 2022-05-09 12:48:42 +01:00
mt8195-mt6359.c ASoC: mediatek: mt8195: Fix build warning without CONFIG_OF 2022-05-09 19:04:37 +01:00
mt8195-reg.h ASoC: mediatek: mt8195: correct pcmif BE dai control flow 2021-12-31 13:20:57 +00:00