Skip to content

Commit

Permalink
Merge branch 'for-3.2' into for-3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Nov 23, 2011
2 parents 193b2f3 + 5ff1ddf commit 983a150
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,12 @@ int snd_soc_resume(struct device *dev)
struct snd_soc_card *card = dev_get_drvdata(dev);
int i, ac97_control = 0;

/* If the initialization of this soc device failed, there is no codec
* associated with it. Just bail out in this case.
*/
if (list_empty(&card->codec_dev_list))
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
Expand Down

0 comments on commit 983a150

Please sign in to comment.