[ALSA] Fix a typo in the last fix

Modules: ALSA Core

Fix a typo (bogus check) in the last patch to fix Oops with suspend/resume.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2005-10-25 10:58:59 +02:00 committed by Jaroslav Kysela
parent f190286016
commit aa92c4af15
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ static int snd_generic_resume(struct device *dev)
card = get_snd_generic_card(dev); card = get_snd_generic_card(dev);
if (card->power_state == SNDRV_CTL_POWER_D0) if (card->power_state == SNDRV_CTL_POWER_D0)
return 0; return 0;
if (card->pm_suspend) if (card->pm_resume)
card->pm_resume(card); card->pm_resume(card);
snd_power_change_state(card, SNDRV_CTL_POWER_D0); snd_power_change_state(card, SNDRV_CTL_POWER_D0);
return 0; return 0;