[alsa-devel] [PATCH] ASoC: fix build with PM_SLEEP unset
3 Feb
2011
3 Feb
'11
9:32 a.m.
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@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
5085
Age (days ago)
5085
Last active (days ago)
1 comments
2 participants
participants (2)
-
Guennadi Liakhovetski
-
Mark Brown