lkml.org 
[lkml]   [2010]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 22 Mar 2010 08:55:35 -0700
FromRandy Dunlap <>
Subject[PATCH -next] sound: fix usb build error when PM is not enabled
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build errors when CONFIG_PM is not enabled:

sound/usb/card.c:629: error: 'usb_audio_suspend' undeclared here (not in a function)
sound/usb/card.c:630: error: 'usb_audio_resume' undeclared here (not in a function)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
sound/usb/card.c | 3 +++
1 file changed, 3 insertions(+)
--- linux-next-20100322.orig/sound/usb/card.c
+++ linux-next-20100322/sound/usb/card.c
@@ -606,6 +606,9 @@ static int usb_audio_resume(struct usb_i

return 0;
}
+#else
+#define usb_audio_suspend NULL
+#define usb_audio_resume NULL
#endif /* CONFIG_PM */

static struct usb_device_id usb_audio_ids [] = {

\
 
 \ /
  Last update: 2010-03-22 17:01    [from the cache]
©2003-2010