ASoC: mt8192: remove unnecessary CONFIG_PM
Subsystems (3)
[PATCH] ASoC: mt8192: remove unnecessary CONFIG_PM
PATCH 1/1 ASoC: mt8192: remove unnecessary CONFIG_PM
The unnecessary conditional inclusion caused the following warning.
Quoted 2 lines
Quoted 2 lines
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 <[email protected]>
Reported-by kernel test robot <[email protected]>
--- sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 2 -- 1 file changed, 2 deletions(-)
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c +0 -2
@@ -2381,9 +2381,7 @@ static struct platform_driver mt8192_afe_pcm_driver = { .driver = { .name = "mt8192-audio", .of_match_table = mt8192_afe_pcm_dt_match, -#ifdef CONFIG_PM .pm = &mt8192_afe_pm_ops, -#endif }, .probe = mt8192_afe_pcm_dev_probe, .remove = mt8192_afe_pcm_dev_remove,
Signature · 1 line
2.25.1
Quoted 2 lines · Jiaxin Yu
Signed-off-by Jiaxin Yu <[email protected]>Reported-by kernel test robot <[email protected]>
Acked-by Tzung-Bi Shih <[email protected]>
Could you also submit another series for the cleanup?
At least for sound/soc/mediatek/:
$ rg --files-with-matches CONFIG_PM sound/soc/mediatek/ sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c sound/soc/mediatek/mt8173/mt8173-rt5650.c sound/soc/mediatek/mt8173/mt8173-max98090.c sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c sound/soc/mediatek/mt6797/mt6797-afe-pcm.c sound/soc/mediatek/mt2701/mt2701-afe-pcm.c sound/soc/mediatek/mt8192/mt8192-afe-pcm.c sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
Quoted 10 lines · Tzung-Bi Shih
Quoted 2 lines · Jiaxin Yu
Signed-off-by Jiaxin Yu <[email protected]>Reported-by kernel test robot <[email protected]>Acked-by Tzung-Bi Shih <[email protected]>Could you also submit another series for the cleanup?
At least for
sound/soc/mediatek/:
Quoted 9 lines
$ rg --files-with-matches CONFIG_PM sound/soc/mediatek/ sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c sound/soc/mediatek/mt8173/mt8173-rt5650.c sound/soc/mediatek/mt8173/mt8173-max98090.c sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c sound/soc/mediatek/mt6797/mt6797-afe-pcm.c sound/soc/mediatek/mt2701/mt2701-afe-pcm.c sound/soc/mediatek/mt8192/mt8192-afe-pcm.c sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
Hi Tzung-Bi,
Ok, I will remove them from sound/soc/mediatek folder in PATCH v2. Thank you for reminding.