]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mt8195: remove unnecessary CONFIG_PM
authorTrevor Wu <trevor.wu@mediatek.com>
Thu, 2 Sep 2021 07:14:40 +0000 (15:14 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 13 Sep 2021 00:59:16 +0000 (01:59 +0100)
commit75c2ad7bad39354ef4f89f575e2e7188760b92aa
tree11fc461ff73576769c80614b6037cedd12fc93c6
parent31e7494f05d560b5cf6d1c318d5946bd9b958513
ASoC: mt8195: remove unnecessary CONFIG_PM

The unnecessary conditional inclusion caused the following warning.

>> sound/soc/mediatek/mt8195/mt8195-afe-pcm.c:3260:32: warning: unused
>> variable 'mt8195_afe_pm_ops' [-Wunused-const-variable]
   static const struct dev_pm_ops mt8195_afe_pm_ops = {
                                  ^
   1 warning generated.

Because runtime_pm already handles the case without CONFIG_PM, we
can remove CONFIG_PM condition.

Fixes: 965a6357595e ("ASoC: mediatek: mt8195: add platform driver")
Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20210902071440.6087-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c