diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-12-02 11:40:53 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-12-06 12:19:40 +0300 |
commit | 86a9bb5bf9f610ea6baa855b4f46ecea92876ea4 (patch) | |
tree | 367c57050c55c5a9f6a830c95326bedc6361f60f /sound/usb/power.h | |
parent | 82cd3ba691a920007503d189989d2495a41a3a10 (diff) | |
download | linux-86a9bb5bf9f610ea6baa855b4f46ecea92876ea4.tar.xz |
ALSA: usb-audio: Drop CONFIG_PM ifdefs
Practically seen, CONFIG_PM is almost mandatory.
Let's drop the ugly ifdef lines and simplify the code.
Link: https://lore.kernel.org/r/20211202084053.18201-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/power.h')
-rw-r--r-- | sound/usb/power.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sound/usb/power.h b/sound/usb/power.h index 6004231a7c75..396e3e51440a 100644 --- a/sound/usb/power.h +++ b/sound/usb/power.h @@ -21,17 +21,7 @@ struct snd_usb_power_domain * snd_usb_find_power_domain(struct usb_host_interface *ctrl_iface, unsigned char id); -#ifdef CONFIG_PM int snd_usb_autoresume(struct snd_usb_audio *chip); void snd_usb_autosuspend(struct snd_usb_audio *chip); -#else -static inline int snd_usb_autoresume(struct snd_usb_audio *chip) -{ - return 0; -} -static inline void snd_usb_autosuspend(struct snd_usb_audio *chip) -{ -} -#endif #endif /* __USBAUDIO_POWER_H */ |