Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284547
b: refs/heads/master
c: 55ee29d
h: refs/heads/master
i:
  284545: 4ac9523
  284543: 8191fd3
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 8, 2012
1 parent f5c303c commit c4eb1a8
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 18bf50a374a46aec83652f48006a6fac764c635d
refs/heads/master: 55ee29d5fff18b6485543bea10620daf9e29555c
4 changes: 1 addition & 3 deletions trunk/drivers/mfd/wm8350-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static int wm8350_i2c_probe(struct i2c_client *i2c,
struct wm8350 *wm8350;
int ret = 0;

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

Expand All @@ -80,7 +80,6 @@ static int wm8350_i2c_probe(struct i2c_client *i2c,
return ret;

err:
kfree(wm8350);
return ret;
}

Expand All @@ -89,7 +88,6 @@ static int wm8350_i2c_remove(struct i2c_client *i2c)
struct wm8350 *wm8350 = i2c_get_clientdata(i2c);

wm8350_device_exit(wm8350);
kfree(wm8350);

return 0;
}
Expand Down

0 comments on commit c4eb1a8

Please sign in to comment.