diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-31 00:08:06 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-22 17:57:05 +0400 |
commit | 130a70323c323046b15a76ef1147b1fe700afd10 (patch) | |
tree | 713b588f9cfe1c1424185919cf70ea1041bfc692 /drivers/mfd/wm831x-i2c.c | |
parent | 9db4249fa0fb808ea0c27dfe0fcedc1884ebfb5a (diff) | |
download | linux-130a70323c323046b15a76ef1147b1fe700afd10.tar.xz |
mfd: wm831x: Convert to devm_regmap_init()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm831x-i2c.c')
-rw-r--r-- | drivers/mfd/wm831x-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/wm831x-i2c.c b/drivers/mfd/wm831x-i2c.c index cb15609b0a48..2b29caebc9cf 100644 --- a/drivers/mfd/wm831x-i2c.c +++ b/drivers/mfd/wm831x-i2c.c @@ -37,7 +37,7 @@ static int wm831x_i2c_probe(struct i2c_client *i2c, i2c_set_clientdata(i2c, wm831x); wm831x->dev = &i2c->dev; - wm831x->regmap = regmap_init_i2c(i2c, &wm831x_regmap_config); + wm831x->regmap = devm_regmap_init_i2c(i2c, &wm831x_regmap_config); if (IS_ERR(wm831x->regmap)) { ret = PTR_ERR(wm831x->regmap); dev_err(wm831x->dev, "Failed to allocate register map: %d\n", |