Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206637
b: refs/heads/master
c: 085efd2
h: refs/heads/master
i:
  206635: 5095bb4
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 3, 2010
1 parent c15596e commit 805003f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 7bcaad919bc7aaa084f5884aa15654fe1fa4c77f
refs/heads/master: 085efd28b65582fac459359672421a1c479e7db1
8 changes: 6 additions & 2 deletions trunk/sound/soc/codecs/da7210.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ static int da7210_init(struct da7210_priv *da7210)
ret = snd_soc_register_dai(&da7210_dai);
if (ret) {
dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
goto init_err;
goto codec_err;
}

/* FIXME
Expand Down Expand Up @@ -585,6 +585,8 @@ static int da7210_init(struct da7210_priv *da7210)

return ret;

codec_err:
snd_soc_unregister_codec(codec);
init_err:
kfree(codec->reg_cache);
codec->reg_cache = NULL;
Expand Down Expand Up @@ -612,8 +614,10 @@ static int __devinit da7210_i2c_probe(struct i2c_client *i2c,
codec->control_data = i2c;

ret = da7210_init(da7210);
if (ret < 0)
if (ret < 0) {
pr_err("Failed to initialise da7210 audio codec\n");
kfree(da7210);
}

return ret;
}
Expand Down

0 comments on commit 805003f

Please sign in to comment.