ASoC: amd: vangogh: Switch to {RUNTIME,SYSTEM_SLEEP}_PM_OPS
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Sat, 9 Dec 2023 20:32:21 +0000 (22:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 Dec 2023 14:03:51 +0000 (14:03 +0000)
commit78d3924675d4e076faa5600b48b8565fcb135ee0
tree091f34224f1f05159c7bc2412fc612997500af34
parent2cef11ec3dfd5f14d8ddef917682408ed01e5805
ASoC: amd: vangogh: Switch to {RUNTIME,SYSTEM_SLEEP}_PM_OPS

Replace the old SET_{RUNTIME,SYSTEM_SLEEP}_PM_OPS() helpers with their
modern alternatives and drop the now unnecessary __maybe_unused
qualifier in the suspend and resume functions.

Additionally, make use of pm_ptr() to ensure the PM ops are dropped when
building with CONFIG_PM disabled.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Link: https://msgid.link/r/20231209203229.878730-4-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/vangogh/pci-acp5x.c