ALSA: usb: fix usb build error when PM is not enabled
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 22 Mar 2010 15:55:35 +0000 (08:55 -0700)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Mar 2010 16:07:36 +0000 (17:07 +0100)
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>
sound/usb/card.c

index 0bd62a1aa4f2f3f1a43179713c17edd2e76cb5cc..da1346bd4856893a5e2449abfe0d6cd1e6293ea5 100644 (file)
@@ -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 [] = {