Skip to content

Commit da0713f

Browse files
committed
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>
1 parent 73a6bbe commit da0713f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sound/core/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,7 @@ void snd_card_disconnect(struct snd_card *card)
550550
clear_bit(card->number, snd_cards_lock);
551551
}
552552

553-
#ifdef CONFIG_PM
554553
snd_power_sync_ref(card);
555-
#endif
556554
}
557555
EXPORT_SYMBOL(snd_card_disconnect);
558556

0 commit comments

Comments
 (0)