Revert "ASoC: core: On resume also check the soc device state"
author黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 07:56:58 +0000 (15:56 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 07:56:58 +0000 (15:56 +0800)
This reverts commit ecf7611caeb1b68e6ed4575f1abf92c619e75a98.

sound/soc/soc-core.c

index 230cb888eb71202e0534287fce729a6deaf217cb..0a1b2f64bbee38a18947a9fa161eb922dc0f17a0 100644 (file)
@@ -774,12 +774,6 @@ static int soc_resume(struct device *dev)
        struct snd_soc_card *card = socdev->card;
        struct snd_soc_dai *cpu_dai = card->dai_link[0].cpu_dai;
 
-       /* If the initialization of this soc device failed, there is no codec
-        * associated with it. Just bail out in this case.
-        */
-       if (!card->codec)
-               return 0;
-
        /* AC97 devices might have other drivers hanging off them so
         * need to resume immediately.  Other drivers don't have that
         * problem and may take a substantial amount of time to resume