Commit faf69551 authored by Jiaxin Yu's avatar Jiaxin Yu Committed by Mark Brown

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: default avatarJiaxin Yu <jiaxin.yu@mediatek.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Acked-by: default avatarTzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20211125042422.2349-1-jiaxin.yu@mediatek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent cd2f33e9
...@@ -1474,9 +1474,7 @@ static struct platform_driver mt2701_afe_pcm_driver = { ...@@ -1474,9 +1474,7 @@ static struct platform_driver mt2701_afe_pcm_driver = {
.driver = { .driver = {
.name = "mt2701-audio", .name = "mt2701-audio",
.of_match_table = mt2701_afe_pcm_dt_match, .of_match_table = mt2701_afe_pcm_dt_match,
#ifdef CONFIG_PM
.pm = &mt2701_afe_pm_ops, .pm = &mt2701_afe_pm_ops,
#endif
}, },
.probe = mt2701_afe_pcm_dev_probe, .probe = mt2701_afe_pcm_dev_probe,
.remove = mt2701_afe_pcm_dev_remove, .remove = mt2701_afe_pcm_dev_remove,
......
...@@ -901,9 +901,7 @@ static struct platform_driver mt6797_afe_pcm_driver = { ...@@ -901,9 +901,7 @@ static struct platform_driver mt6797_afe_pcm_driver = {
.driver = { .driver = {
.name = "mt6797-audio", .name = "mt6797-audio",
.of_match_table = mt6797_afe_pcm_dt_match, .of_match_table = mt6797_afe_pcm_dt_match,
#ifdef CONFIG_PM
.pm = &mt6797_afe_pm_ops, .pm = &mt6797_afe_pm_ops,
#endif
}, },
.probe = mt6797_afe_pcm_dev_probe, .probe = mt6797_afe_pcm_dev_probe,
.remove = mt6797_afe_pcm_dev_remove, .remove = mt6797_afe_pcm_dev_remove,
......
...@@ -193,9 +193,7 @@ static struct platform_driver mt8173_max98090_driver = { ...@@ -193,9 +193,7 @@ static struct platform_driver mt8173_max98090_driver = {
.driver = { .driver = {
.name = "mt8173-max98090", .name = "mt8173-max98090",
.of_match_table = mt8173_max98090_dt_match, .of_match_table = mt8173_max98090_dt_match,
#ifdef CONFIG_PM
.pm = &snd_soc_pm_ops, .pm = &snd_soc_pm_ops,
#endif
}, },
.probe = mt8173_max98090_dev_probe, .probe = mt8173_max98090_dev_probe,
}; };
......
...@@ -231,9 +231,7 @@ static struct platform_driver mt8173_rt5650_rt5514_driver = { ...@@ -231,9 +231,7 @@ static struct platform_driver mt8173_rt5650_rt5514_driver = {
.driver = { .driver = {
.name = "mtk-rt5650-rt5514", .name = "mtk-rt5650-rt5514",
.of_match_table = mt8173_rt5650_rt5514_dt_match, .of_match_table = mt8173_rt5650_rt5514_dt_match,
#ifdef CONFIG_PM
.pm = &snd_soc_pm_ops, .pm = &snd_soc_pm_ops,
#endif
}, },
.probe = mt8173_rt5650_rt5514_dev_probe, .probe = mt8173_rt5650_rt5514_dev_probe,
}; };
......
...@@ -298,9 +298,7 @@ static struct platform_driver mt8173_rt5650_rt5676_driver = { ...@@ -298,9 +298,7 @@ static struct platform_driver mt8173_rt5650_rt5676_driver = {
.driver = { .driver = {
.name = "mtk-rt5650-rt5676", .name = "mtk-rt5650-rt5676",
.of_match_table = mt8173_rt5650_rt5676_dt_match, .of_match_table = mt8173_rt5650_rt5676_dt_match,
#ifdef CONFIG_PM
.pm = &snd_soc_pm_ops, .pm = &snd_soc_pm_ops,
#endif
}, },
.probe = mt8173_rt5650_rt5676_dev_probe, .probe = mt8173_rt5650_rt5676_dev_probe,
}; };
......
...@@ -336,9 +336,7 @@ static struct platform_driver mt8173_rt5650_driver = { ...@@ -336,9 +336,7 @@ static struct platform_driver mt8173_rt5650_driver = {
.driver = { .driver = {
.name = "mtk-rt5650", .name = "mtk-rt5650",
.of_match_table = mt8173_rt5650_dt_match, .of_match_table = mt8173_rt5650_dt_match,
#ifdef CONFIG_PM
.pm = &snd_soc_pm_ops, .pm = &snd_soc_pm_ops,
#endif
}, },
.probe = mt8173_rt5650_dev_probe, .probe = mt8173_rt5650_dev_probe,
}; };
......
...@@ -1279,9 +1279,7 @@ static struct platform_driver mt8183_afe_pcm_driver = { ...@@ -1279,9 +1279,7 @@ static struct platform_driver mt8183_afe_pcm_driver = {
.driver = { .driver = {
.name = "mt8183-audio", .name = "mt8183-audio",
.of_match_table = mt8183_afe_pcm_dt_match, .of_match_table = mt8183_afe_pcm_dt_match,
#ifdef CONFIG_PM
.pm = &mt8183_afe_pm_ops, .pm = &mt8183_afe_pm_ops,
#endif
}, },
.probe = mt8183_afe_pcm_dev_probe, .probe = mt8183_afe_pcm_dev_probe,
.remove = mt8183_afe_pcm_dev_remove, .remove = mt8183_afe_pcm_dev_remove,
......
...@@ -2381,9 +2381,7 @@ static struct platform_driver mt8192_afe_pcm_driver = { ...@@ -2381,9 +2381,7 @@ static struct platform_driver mt8192_afe_pcm_driver = {
.driver = { .driver = {
.name = "mt8192-audio", .name = "mt8192-audio",
.of_match_table = mt8192_afe_pcm_dt_match, .of_match_table = mt8192_afe_pcm_dt_match,
#ifdef CONFIG_PM
.pm = &mt8192_afe_pm_ops, .pm = &mt8192_afe_pm_ops,
#endif
}, },
.probe = mt8192_afe_pcm_dev_probe, .probe = mt8192_afe_pcm_dev_probe,
.remove = mt8192_afe_pcm_dev_remove, .remove = mt8192_afe_pcm_dev_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment