summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-05-10 14:51:27 +0200
committerTakashi Iwai <tiwai@suse.de>2024-05-10 15:30:45 +0200
commitda0713fff528112890aac02fea08937b65d5c8ba (patch)
tree064d7203397f7c5cfc4d6fe43f0efc54fcdeb5ac /sound/core
parent73a6bbeca7d0548719f6cd6b9074643b196fbc5a (diff)
ALSA: core: Remove superfluous CONFIG_PM
Since the recent code change, the conditional build with CONFIG_PM is calling only snd_power_sync_ref(). As a dummy function is provided for this function, we can get rid of CONFIG_PM gracefully now. Link: https://lore.kernel.org/r/20240510125128.6058-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/core/init.c b/sound/core/init.c
index 89c8354862c4..6b127864a1a3 100644
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -550,9 +550,7 @@ void snd_card_disconnect(struct snd_card *card)
clear_bit(card->number, snd_cards_lock);
}
-#ifdef CONFIG_PM
snd_power_sync_ref(card);
-#endif
}
EXPORT_SYMBOL(snd_card_disconnect);