linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] SOC audio: fix PM=n build
@ 2008-06-17 16:46 Randy Dunlap
  2008-06-17 18:09 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-06-17 16:46 UTC (permalink / raw)
  To: linux-next; +Cc: liam.girdwood, broonie, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

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 <randy.dunlap@oracle.com>
---
 sound/soc/soc-core.c |    2 ++
 1 file changed, 2 insertions(+)

--- linux-next-20080617.orig/sound/soc/soc-core.c
+++ linux-next-20080617/sound/soc/soc-core.c
@@ -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;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-17 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-17 16:46 [PATCH -next] SOC audio: fix PM=n build Randy Dunlap
2008-06-17 18:09 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).