From e041b29247f0eea75e8600d9bc67a5b9ced0db6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Sat, 30 Jul 2011 15:56:58 +0800 Subject: [PATCH] Revert "ASoC: core: On resume also check the soc device state" This reverts commit ecf7611caeb1b68e6ed4575f1abf92c619e75a98. --- sound/soc/soc-core.c | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.34.1