diff options
author | Jiaxin Yu <jiaxin.yu@mediatek.com> | 2021-11-25 07:24:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-11-25 14:54:28 +0300 |
commit | faf695517c1c77bb4a4b46d54007a283962eb00e (patch) | |
tree | e54db48fabc43cf4ab7893960eb89da5e09dbdf6 /sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | |
parent | cd2f33e93d578e9e1c47ef8981ec69298da9cb38 (diff) | |
download | linux-faf695517c1c77bb4a4b46d54007a283962eb00e.tar.xz |
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/mt6797/mt6797-afe-pcm.c')
-rw-r--r-- | sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c index 3d68e4726ea2..fb4abec9aa5f 100644 --- a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c +++ b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c @@ -901,9 +901,7 @@ static struct platform_driver mt6797_afe_pcm_driver = { .driver = { .name = "mt6797-audio", .of_match_table = mt6797_afe_pcm_dt_match, -#ifdef CONFIG_PM .pm = &mt6797_afe_pm_ops, -#endif }, .probe = mt6797_afe_pcm_dev_probe, .remove = mt6797_afe_pcm_dev_remove, |