]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: cx2072x: mark PM function as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jun 2019 11:06:15 +0000 (13:06 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2019 12:35:51 +0000 (13:35 +0100)
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>
sound/soc/codecs/cx2072x.c

index f2cb35a50726b4b7fc0c36e81e15256aa26895fe..1c1ba7bea4d8196961ee273726f651f34a4f5b02 100644 (file)
@@ -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);