Skip to content

Commit

Permalink
ASoC: loongson: fix unused PM function warning
Browse files Browse the repository at this point in the history
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: d240286 ("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>
  • Loading branch information
Arnd Bergmann authored and Mark Brown committed Jun 16, 2023
1 parent 0c340ba commit 041c5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/loongson/loongson_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};

0 comments on commit 041c5a1

Please sign in to comment.