aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/card.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2010-03-22 11:55:35 -0400
committerTakashi Iwai <tiwai@suse.de>2010-03-22 12:07:36 -0400
commit6407d474e6ae6a798fa5ba40b32f508a52de80ff (patch)
tree30e0ef362cc3cd8d7e281a768c594636fd019377 /sound/usb/card.c
parent2fb20b61550d3c5335e59819ed22734900d4d6e3 (diff)
ALSA: usb: fix usb build error when PM is not enabled
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> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/card.c')
-rw-r--r--sound/usb/card.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/usb/card.c b/sound/usb/card.c
index 0bd62a1aa4f2..da1346bd4856 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -606,6 +606,9 @@ static int usb_audio_resume(struct usb_interface *intf)
606 606
607 return 0; 607 return 0;
608} 608}
609#else
610#define usb_audio_suspend NULL
611#define usb_audio_resume NULL
609#endif /* CONFIG_PM */ 612#endif /* CONFIG_PM */
610 613
611static struct usb_device_id usb_audio_ids [] = { 614static struct usb_device_id usb_audio_ids [] = {