Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283792
b: refs/heads/master
c: 897f784
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Nov 27, 2011
1 parent ab5ab80 commit 4af2435
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5fe803f56ad41cf008399f71ee48280f0cf9732b
refs/heads/master: 897f7847e6fec6f24efef4268993afcfc36dca23
5 changes: 2 additions & 3 deletions trunk/sound/soc/codecs/wm9081.c
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,8 @@ static __devinit int wm9081_i2c_probe(struct i2c_client *i2c,
unsigned int reg;
int ret;

wm9081 = kzalloc(sizeof(struct wm9081_priv), GFP_KERNEL);
wm9081 = devm_kzalloc(&i2c->dev, sizeof(struct wm9081_priv),
GFP_KERNEL);
if (wm9081 == NULL)
return -ENOMEM;

Expand Down Expand Up @@ -1405,7 +1406,6 @@ static __devinit int wm9081_i2c_probe(struct i2c_client *i2c,
err_regmap:
regmap_exit(wm9081->regmap);
err:
kfree(wm9081);

return ret;
}
Expand All @@ -1416,7 +1416,6 @@ static __devexit int wm9081_i2c_remove(struct i2c_client *client)

snd_soc_unregister_codec(&client->dev);
regmap_exit(wm9081->regmap);
kfree(i2c_get_clientdata(client));
return 0;
}

Expand Down

0 comments on commit 4af2435

Please sign in to comment.