aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e1c0336868e1..a03bac943aaf 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -963,6 +963,12 @@ static int soc_resume(struct device *dev)
963 struct snd_soc_card *card = socdev->card; 963 struct snd_soc_card *card = socdev->card;
964 struct snd_soc_dai *cpu_dai = card->dai_link[0].cpu_dai; 964 struct snd_soc_dai *cpu_dai = card->dai_link[0].cpu_dai;
965 965
966 /* If the initialization of this soc device failed, there is no codec
967 * associated with it. Just bail out in this case.
968 */
969 if (!card->codec)
970 return 0;
971
966 /* AC97 devices might have other drivers hanging off them so 972 /* AC97 devices might have other drivers hanging off them so
967 * need to resume immediately. Other drivers don't have that 973 * need to resume immediately. Other drivers don't have that
968 * problem and may take a substantial amount of time to resume 974 * problem and may take a substantial amount of time to resume