Skip to content

Commit

Permalink
ALSA: usb: fix usb build error when PM is not enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Takashi Iwai committed Mar 22, 2010
1 parent 2fb20b6 commit 6407d47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/usb/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 [] = {
Expand Down

0 comments on commit 6407d47

Please sign in to comment.