From: Thierry Reding Date: Mon, 7 Jul 2014 13:18:19 +0000 (+0200) Subject: ASoC: max98090: Fix build warning X-Git-Tag: v3.17-rc1~101^2~5^2~7^4 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=121eb444135c25701051eb849e7ccf0dd412382b;p=linux.git ASoC: max98090: Fix build warning The max98090_{suspend,resume}() functions are used for system sleep and therefore need to be guarded by CONFIG_PM_SLEEP rather than CONFIG_PM. Signed-off-by: Thierry Reding Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 0e59e5117e43..6816578ea8f7 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2408,7 +2408,7 @@ static int max98090_runtime_suspend(struct device *dev) } #endif -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int max98090_resume(struct device *dev) { struct max98090_priv *max98090 = dev_get_drvdata(dev);