summaryrefslogtreecommitdiff
path: root/drivers/regulator/max8649.c
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@gmail.com>2012-06-05 14:10:10 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-05 14:15:22 +0400
commit61663171bea0ccb499f0818234c5be7ea6c4c791 (patch)
treecf964d27b6cf0b76ee2cbe26088df657a12c8029 /drivers/regulator/max8649.c
parentb0e4d7bf8b5704904a5d138d81a8ec8b7145767f (diff)
downloadlinux-61663171bea0ccb499f0818234c5be7ea6c4c791.tar.xz
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.c1
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)) {