Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148325
b: refs/heads/master
c: e3509ff
h: refs/heads/master
i:
  148323: 1fb2f35
v: v3
  • Loading branch information
Daniel Mack authored and Mark Brown committed Jun 4, 2009
1 parent 099701e commit e44ce69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d08664fdb50795b29cf70b0269ea02f7248e76c3
refs/heads/master: e3509ff0fb9df53e45cd68488e3b463a80455db7
6 changes: 6 additions & 0 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,12 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state)
struct snd_soc_codec *codec = card->codec;
int i;

/* If the initialization of this soc device failed, there is no codec
* associated with it. Just bail out in this case.
*/
if (!codec)
return 0;

/* Due to the resume being scheduled into a workqueue we could
* suspend before that's finished - wait for it to complete.
*/
Expand Down

0 comments on commit e44ce69

Please sign in to comment.