mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									2fb20b6155
								
							
						
					
					
						commit
						6407d474e6
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -606,6 +606,9 @@ static int usb_audio_resume(struct usb_interface *intf) | ||||||
| 
 | 
 | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|  | #else | ||||||
|  | #define usb_audio_suspend	NULL | ||||||
|  | #define usb_audio_resume	NULL | ||||||
| #endif		/* CONFIG_PM */ | #endif		/* CONFIG_PM */ | ||||||
| 
 | 
 | ||||||
| static struct usb_device_id usb_audio_ids [] = { | static struct usb_device_id usb_audio_ids [] = { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Randy Dunlap
						Randy Dunlap