Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294168
b: refs/heads/master
c: 2b40e9d
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Feb 22, 2012
1 parent af7017e commit 44f5d34
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: 130a70323c323046b15a76ef1147b1fe700afd10
refs/heads/master: 2b40e9d97d196f98ef356003d400d5675174b4fc
7 changes: 2 additions & 5 deletions trunk/drivers/mfd/wm8400-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static int wm8400_i2c_probe(struct i2c_client *i2c,
goto err;
}

wm8400->regmap = regmap_init_i2c(i2c, &wm8400_regmap_config);
wm8400->regmap = devm_regmap_init_i2c(i2c, &wm8400_regmap_config);
if (IS_ERR(wm8400->regmap)) {
ret = PTR_ERR(wm8400->regmap);
goto err;
Expand All @@ -361,12 +361,10 @@ static int wm8400_i2c_probe(struct i2c_client *i2c,

ret = wm8400_init(wm8400, i2c->dev.platform_data);
if (ret != 0)
goto map_err;
goto err;

return 0;

map_err:
regmap_exit(wm8400->regmap);
err:
return ret;
}
Expand All @@ -376,7 +374,6 @@ static int wm8400_i2c_remove(struct i2c_client *i2c)
struct wm8400 *wm8400 = i2c_get_clientdata(i2c);

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

return 0;
}
Expand Down

0 comments on commit 44f5d34

Please sign in to comment.