diff options
author | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-06-05 12:10:10 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-05 12:15:22 +0200 |
commit | 61663171bea0ccb499f0818234c5be7ea6c4c791 (patch) | |
tree | cf964d27b6cf0b76ee2cbe26088df657a12c8029 /drivers/regulator/max8649.c | |
parent | regulator: gpio-regulator: populate selector from set_voltage (diff) | |
download | linux-61663171bea0ccb499f0818234c5be7ea6c4c791.tar.xz linux-61663171bea0ccb499f0818234c5be7ea6c4c791.zip |
regulator: max8649: fix missing regmap in rdev
In probe(), rdev->regmap must be assigned.
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/max8649.c')
-rw-r--r-- | drivers/regulator/max8649.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index 1f4bb80457b3..9d540cd02dab 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c @@ -259,6 +259,7 @@ static int __devinit max8649_regulator_probe(struct i2c_client *client, config.dev = &client->dev; config.init_data = pdata->regulator; config.driver_data = info; + config.regmap = info->regmap; info->regulator = regulator_register(&dcdc_desc, &config); if (IS_ERR(info->regulator)) { |