ASoC: mt8195: remove unnecessary CONFIG_PM
Subsystems (3)
PATCH 1/1 ASoC: mt8195: remove unnecessary CONFIG_PM
The unnecessary conditional inclusion caused the following warning.
Quoted 2 lines
Quoted 2 lines
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.
--- sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 2 -- 1 file changed, 2 deletions(-)
sound/soc/mediatek/mt8195/mt8195-afe-pcm.c +0 -2
@@ -3266,9 +3266,7 @@ static struct platform_driver mt8195_afe_pcm_driver = { .driver = { .name = "mt8195-audio", .of_match_table = mt8195_afe_pcm_dt_match, -#ifdef CONFIG_PM .pm = &mt8195_afe_pm_ops, -#endif }, .probe = mt8195_afe_pcm_dev_probe, .remove = mt8195_afe_pcm_dev_remove,
Signature · 1 line
2.18.0
Mark Brown
maintainerQuoted 9 lines · Trevor Wu
The unnecessary conditional inclusion caused the following warning.
Quoted 2 lines
Quoted 2 lines
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.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: mt8195: remove unnecessary CONFIG_PM
commit: 2b9b42c847b83823527a497c323e74d2efced721
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark