summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/mt8183
diff options
context:
space:
mode:
authorJiaxin Yu <jiaxin.yu@mediatek.com>2021-11-25 12:24:22 +0800
committerMark Brown <broonie@kernel.org>2021-11-25 11:54:28 +0000
commitfaf695517c1c77bb4a4b46d54007a283962eb00e (patch)
treee54db48fabc43cf4ab7893960eb89da5e09dbdf6 /sound/soc/mediatek/mt8183
parentcd2f33e93d578e9e1c47ef8981ec69298da9cb38 (diff)
downloadlinux-faf695517c1c77bb4a4b46d54007a283962eb00e.tar.gz
linux-faf695517c1c77bb4a4b46d54007a283962eb00e.tar.bz2
linux-faf695517c1c77bb4a4b46d54007a283962eb00e.zip
ASoC: mediatek: remove unnecessary CONFIG_PM
The unnecessary conditional inclusion caused the following warning. Such as: >> sound/soc/mediatek/mt8192/mt8192-afe-pcm.c:2368:32: warning: unused >> variable 'mt8192_afe_pm_ops' [-Wunused-const-variable] static const struct dev_pm_ops mt8192_afe_pm_ops = { Because runtime_pm already handles the case without CONFIG_PM, we can remove CONFIG_PM condition. Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com> Reported-by: kernel test robot <lkp@intel.com> Acked-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20211125042422.2349-1-jiaxin.yu@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt8183')
-rw-r--r--sound/soc/mediatek/mt8183/mt8183-afe-pcm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
index 14e77df06b01..86c8a523fe9e 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
@@ -1279,9 +1279,7 @@ static struct platform_driver mt8183_afe_pcm_driver = {
.driver = {
.name = "mt8183-audio",
.of_match_table = mt8183_afe_pcm_dt_match,
-#ifdef CONFIG_PM
.pm = &mt8183_afe_pm_ops,
-#endif
},
.probe = mt8183_afe_pcm_dev_probe,
.remove = mt8183_afe_pcm_dev_remove,