Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284569
b: refs/heads/master
c: f577234
h: refs/heads/master
i:
  284567: ac0abfd
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 8, 2012
1 parent dafde16 commit 8c12d7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: ee66e653ca7425bc8ffca4e00f19a8057cd14e4d
refs/heads/master: f57723457045eb281dcf8d364d1c7292d242ff68
7 changes: 2 additions & 5 deletions trunk/drivers/mfd/wm8400-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static int wm8400_i2c_probe(struct i2c_client *i2c,
struct wm8400 *wm8400;
int ret;

wm8400 = kzalloc(sizeof(struct wm8400), GFP_KERNEL);
wm8400 = devm_kzalloc(&i2c->dev, sizeof(struct wm8400), GFP_KERNEL);
if (wm8400 == NULL) {
ret = -ENOMEM;
goto err;
Expand All @@ -353,7 +353,7 @@ static int wm8400_i2c_probe(struct i2c_client *i2c,
wm8400->regmap = regmap_init_i2c(i2c, &wm8400_regmap_config);
if (IS_ERR(wm8400->regmap)) {
ret = PTR_ERR(wm8400->regmap);
goto struct_err;
goto err;
}

wm8400->dev = &i2c->dev;
Expand All @@ -367,8 +367,6 @@ static int wm8400_i2c_probe(struct i2c_client *i2c,

map_err:
regmap_exit(wm8400->regmap);
struct_err:
kfree(wm8400);
err:
return ret;
}
Expand All @@ -379,7 +377,6 @@ static int wm8400_i2c_remove(struct i2c_client *i2c)

wm8400_release(wm8400);
regmap_exit(wm8400->regmap);
kfree(wm8400);

return 0;
}
Expand Down

0 comments on commit 8c12d7c

Please sign in to comment.