Skip to content

Commit

Permalink
regulator: max8649: fix missing regmap in rdev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Haojian Zhuang authored and Mark Brown committed Jun 5, 2012
1 parent b0e4d7b commit 6166317
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6166317

Please sign in to comment.