diff options
author | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-06-05 18:10:10 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-05 11:15:22 +0100 |
commit | 61663171bea0ccb499f0818234c5be7ea6c4c791 (patch) | |
tree | cf964d27b6cf0b76ee2cbe26088df657a12c8029 | |
parent | b0e4d7bf8b5704904a5d138d81a8ec8b7145767f (diff) | |
download | linux-61663171bea0ccb499f0818234c5be7ea6c4c791.tar.gz linux-61663171bea0ccb499f0818234c5be7ea6c4c791.tar.bz2 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>
-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)) { |