[alsa-devel] [PATCH] ASoC: fix build with PM_SLEEP unset

Guennadi Liakhovetski g.liakhovetski at gmx.de
Thu Feb 3 09:32:29 CET 2011


Fix a wrong preprocessor conditional, that leads to soc-core.c compilation 
failure with CONFIG_PM set and CONFIG_PM_SLEEP unset.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski at gmx.de>
---
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 205cbd7..10bc3c2 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1801,7 +1801,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
 	}
 	card->snd_card->dev = card->dev;
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 	/* deferred resume work */
 	INIT_WORK(&card->deferred_resume_work, soc_resume_deferred);
 #endif


More information about the Alsa-devel mailing list