ASoC: loongson: fix unused PM function warning

Build testing without CONFIG_PM_SLEEP causes a warning:

sound/soc/loongson/loongson_i2s.c:246:12: error: unused function 'i2s_suspend' [-Werror,-Wunused-function]
sound/soc/loongson/loongson_i2s.c:255:12: error: unused function 'i2s_resume' [-Werror,-Wunused-function]

Use the modern SYSTEM_SLEEP_PM_OPS() instead of the old one to avoid this.

Fixes: d24028606e ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230616090156.2347850-2-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Arnd Bergmann 2023-06-16 11:00:38 +02:00 committed by Mark Brown
parent 0c340ba05f
commit 041c5a1d06
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -265,5 +265,5 @@ static int i2s_resume(struct device *dev)
}
const struct dev_pm_ops loongson_i2s_pm = {
SET_SYSTEM_SLEEP_PM_OPS(i2s_suspend, i2s_resume)
SYSTEM_SLEEP_PM_OPS(i2s_suspend, i2s_resume)
};