From: 黄涛 Date: Sat, 30 Jul 2011 07:56:58 +0000 (+0800) Subject: Revert "ASoC: core: On resume also check the soc device state" X-Git-Tag: firefly_0821_release~10035 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e041b29247f0eea75e8600d9bc67a5b9ced0db6e;p=firefly-linux-kernel-4.4.55.git Revert "ASoC: core: On resume also check the soc device state" This reverts commit ecf7611caeb1b68e6ed4575f1abf92c619e75a98. --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 230cb888eb71..0a1b2f64bbee 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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