[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230616090156.2347850-2-arnd@kernel.org>
Date: Fri, 16 Jun 2023 11:00:38 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Mark Brown <broonie@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Yingkun Meng <mengyingkun@...ngson.cn>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/4] ASoC: loongson: fix unused PM function warning
From: Arnd Bergmann <arnd@...db.de>
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: d24028606e764 ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
sound/soc/loongson/loongson_i2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/loongson/loongson_i2s.c b/sound/soc/loongson/loongson_i2s.c
index 35d34568be79e..f73b6d6f16c23 100644
--- a/sound/soc/loongson/loongson_i2s.c
+++ b/sound/soc/loongson/loongson_i2s.c
@@ -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)
};
--
2.39.2
Powered by blists - more mailing lists