diff mbox

ASoC: max98090: Fix build warning

Message ID 1404739099-20717-1-git-send-email-thierry.reding@gmail.com (mailing list archive)
State Accepted
Commit 121eb444135c25701051eb849e7ccf0dd412382b
Headers show

Commit Message

Thierry Reding July 7, 2014, 1:18 p.m. UTC
From: Thierry Reding <treding@nvidia.com>

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 <treding@nvidia.com>
---
 sound/soc/codecs/max98090.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown July 7, 2014, 3:06 p.m. UTC | #1
On Mon, Jul 07, 2014 at 03:18:19PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> 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.
diff mbox

Patch

diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index ca74f502a4cb..e806065d68cc 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -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);