From: Arnd Bergmann Date: Mon, 17 Jun 2019 11:06:15 +0000 (+0200) Subject: ASoC: cx2072x: mark PM function as __maybe_unused X-Git-Tag: v5.4-rc1~52^2~39^2~218 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83ee240aad9147ed5dac5a7c7b4c559d134072e7;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c index f2cb35a..1c1ba7b 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);