aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/power.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-12-02 09:40:53 +0100
committerTakashi Iwai <tiwai@suse.de>2021-12-06 10:19:40 +0100
commit86a9bb5bf9f610ea6baa855b4f46ecea92876ea4 (patch)
tree367c57050c55c5a9f6a830c95326bedc6361f60f /sound/usb/power.h
parentALSA: oss: remove useless NULL check before kfree (diff)
downloadlinux-dev-86a9bb5bf9f610ea6baa855b4f46ecea92876ea4.tar.xz
linux-dev-86a9bb5bf9f610ea6baa855b4f46ecea92876ea4.zip
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.h10
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 */