aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-10-25 04:58:59 -0400
committerJaroslav Kysela <perex@suse.cz>2005-11-04 07:20:11 -0500
commitaa92c4af15224d8a96343286cdcf7c73b2ad3809 (patch)
tree2ef8cfb38b13d1a38a55a219254b12bf68f89005
parentf1902860161ff212c515e7ea629e880fec856a37 (diff)
[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>
-rw-r--r--sound/core/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/init.c b/sound/core/init.c
index b98f7c6310c5..d9ee27ae9a51 100644
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -841,7 +841,7 @@ static int snd_generic_resume(struct device *dev)
841 card = get_snd_generic_card(dev); 841 card = get_snd_generic_card(dev);
842 if (card->power_state == SNDRV_CTL_POWER_D0) 842 if (card->power_state == SNDRV_CTL_POWER_D0)
843 return 0; 843 return 0;
844 if (card->pm_suspend) 844 if (card->pm_resume)
845 card->pm_resume(card); 845 card->pm_resume(card);
846 snd_power_change_state(card, SNDRV_CTL_POWER_D0); 846 snd_power_change_state(card, SNDRV_CTL_POWER_D0);
847 return 0; 847 return 0;