Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157547
b: refs/heads/master
c: 5420f30
h: refs/heads/master
i:
  157545: d1a3726
  157543: 8af19a8
v: v3
  • Loading branch information
Mark Brown committed Jul 5, 2009
1 parent e402c90 commit e844ecd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a01417e85846e42e939a345a294e8ae2287cc1f
refs/heads/master: 5420f30723122012c7bb868a55ff21c7d383b68e
8 changes: 5 additions & 3 deletions trunk/sound/soc/codecs/wm8988.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ static int wm8988_register(struct wm8988_priv *wm8988)
ret = wm8988_reset(codec);
if (ret < 0) {
dev_err(codec->dev, "Failed to issue reset\n");
return ret;
goto err;
}

/* set the update bits (we always update left then right) */
Expand All @@ -926,18 +926,20 @@ static int wm8988_register(struct wm8988_priv *wm8988)
ret = snd_soc_register_codec(codec);
if (ret != 0) {
dev_err(codec->dev, "Failed to register codec: %d\n", ret);
return ret;
goto err;
}

ret = snd_soc_register_dai(&wm8988_dai);
if (ret != 0) {
dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
snd_soc_unregister_codec(codec);
return ret;
goto err_codec;
}

return 0;

err_codec:
snd_soc_unregister_codec(codec);
err:
kfree(wm8988);
return ret;
Expand Down

0 comments on commit e844ecd

Please sign in to comment.