]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: core: Remove superfluous CONFIG_PM
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 May 2024 12:51:27 +0000 (14:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 10 May 2024 13:30:45 +0000 (15:30 +0200)
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>
sound/core/init.c

index 89c8354862c4b8831b594b53b36aca480723b01f..6b127864a1a325d904f2ef12b7e2c98a3e29fda4 100644 (file)
@@ -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);