linux/sound/soc/loongson
Arnd Bergmann 041c5a1d06
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>
2023-06-16 12:56:07 +01:00
..
Kconfig ASoC: loongson: Add Loongson ASoC Sound Card Support 2023-06-15 13:53:27 +01:00
loongson_card.c ASoC: loongson: Add Loongson ASoC Sound Card Support 2023-06-15 13:53:27 +01:00
loongson_dma.c
loongson_dma.h
loongson_i2s.c ASoC: loongson: fix unused PM function warning 2023-06-16 12:56:07 +01:00
loongson_i2s.h
loongson_i2s_pci.c
Makefile ASoC: loongson: Add Loongson ASoC Sound Card Support 2023-06-15 13:53:27 +01:00