Skip to contentSkip to conversation

ALSA: core: Remove superfluous CONFIG_PM

PATCH New Takashi Iwai 1 participant 1 message May 10, 2024 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 sound/core/init.c | 2 --
 1 file changed, 2 deletions(-)
sound/core/init.c +0 -2
index 89c8354862c4..6b127864a1a3 100644
@@ -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);
 
Signature · 1 line
2.43.0