summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-17 13:06:15 +0200
committerMark Brown <broonie@kernel.org>2019-06-17 13:35:51 +0100
commit83ee240aad9147ed5dac5a7c7b4c559d134072e7 (patch)
tree9868b9a7b12df4f73ef45dde29bd26b4dd776659 /sound/soc/codecs
parent41d92e0c835bff7dec343bf41e79d24b326d94c1 (diff)
downloadlinux-83ee240aad9147ed5dac5a7c7b4c559d134072e7.tar.bz2
ASoC: cx2072x: mark PM function as __maybe_unused
While the suspend function is already marked __maybe_unused, the resume function is not, which leads to a warning when CONFIG_PM is disabled: sound/soc/codecs/cx2072x.c:1625:12: error: unused function 'cx2072x_runtime_resume' [-Werror,-Wunused-function] Mark this one like the other one. Fixes: a497a4363706 ("ASoC: Add support for Conexant CX2072X CODEC") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/cx2072x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c
index f2cb35a50726..1c1ba7bea4d8 100644
--- a/sound/soc/codecs/cx2072x.c
+++ b/sound/soc/codecs/cx2072x.c
@@ -1622,7 +1622,7 @@ static int __maybe_unused cx2072x_runtime_suspend(struct device *dev)
return 0;
}
-static int cx2072x_runtime_resume(struct device *dev)
+static int __maybe_unused cx2072x_runtime_resume(struct device *dev)
{
struct cx2072x_priv *cx2072x = dev_get_drvdata(dev);