Skip to contentSkip to conversation

ASoC: max98090: Fix build warning

PATCH Applied Thierry Reding 2 participants 2 messages Jul 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: max98090: Fix build warning

From: Thierry Reding <[email protected]>

The max98090_{suspend,resume}() functions are used for system sleep and therefore need to be guarded by CONFIG_PM_SLEEP rather than CONFIG_PM.

---
 sound/soc/codecs/max98090.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/max98090.c +1 -1
index ca74f502a4cb..e806065d68cc 100644
@@ -2415,7 +2415,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);
Signature · 1 line
2.0.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Thierry Reding

From: Thierry Reding <[email protected]>

The max98090_{suspend,resume}() functions are used for system sleep and therefore need to be guarded by CONFIG_PM_SLEEP rather than CONFIG_PM.

Applied, thanks.