Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206641
b: refs/heads/master
c: db1e18d
h: refs/heads/master
i:
  206639: 768df51
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 3, 2010
1 parent 8b71d1e commit 5ce00d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 62f5ad6733b872e14d671b615850eb5bd1cd7e30
refs/heads/master: db1e18de98c8bdf8a2bfc07623ff67621aa4a332
7 changes: 6 additions & 1 deletion trunk/sound/soc/codecs/wm8940.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ static void wm8940_unregister(struct wm8940_priv *wm8940)
static int wm8940_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
int ret;
struct wm8940_priv *wm8940;
struct snd_soc_codec *codec;

Expand All @@ -858,7 +859,11 @@ static int wm8940_i2c_probe(struct i2c_client *i2c,
codec->control_data = i2c;
codec->dev = &i2c->dev;

return wm8940_register(wm8940, SND_SOC_I2C);
ret = wm8940_register(wm8940, SND_SOC_I2C);
if (ret < 0)
kfree(wm8940);

return ret;
}

static int __devexit wm8940_i2c_remove(struct i2c_client *client)
Expand Down

0 comments on commit 5ce00d7

Please sign in to comment.