From: Randy Dunlap Date: Mon, 22 Mar 2010 15:55:35 +0000 (-0700) Subject: ALSA: usb: fix usb build error when PM is not enabled X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6407d474e6ae6a798fa5ba40b32f508a52de80ff;p=linux-beck.git 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 Signed-off-by: Takashi Iwai --- 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) return 0; } +#else +#define usb_audio_suspend NULL +#define usb_audio_resume NULL #endif /* CONFIG_PM */ static struct usb_device_id usb_audio_ids [] = {