SOC audio: fix PM=n build
Subsystems (3)
PATCH 1/1 SOC audio: fix PM=n build
From: Randy Dunlap <[email protected]>
Fix sound/soc build failure when CONFIG_PM=n:
linux-next-20080617/sound/soc/soc-core.c:829: error: 'soc_resume_deferred' undeclared (first use in this function) soc3.out:make[3]: *** [sound/soc/soc-core.o] Error 1
Signed-off-by Randy Dunlap <[email protected]>
--- sound/soc/soc-core.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/soc-core.c +2 -0
@@ -825,8 +825,10 @@ static int soc_probe(struct platform_dev/* DAPM stream work */ INIT_DELAYED_WORK (&socdev->delayed_work, close_delayed_work); +#ifdef CONFIG_PM /* deferred resume work */ INIT_WORK (&socdev->deferred_resume_work, soc_resume_deferred); +#endif return 0 ;
Quoted 8 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Fix
sound/socbuild failure whenCONFIG_PM=n:
linux-next-20080617/sound/soc/soc-core.c:829: error: 'soc_resume_deferred' undeclared (first use in this function) soc3.out:make[3]: *** [sound/soc/soc-core.o] Error 1Signed-off-by Randy Dunlap <[email protected]>
Acked-by Mark Brown <[email protected]>