From: Haojian Zhuang Date: Tue, 5 Jun 2012 10:10:10 +0000 (+0800) Subject: regulator: max8649: fix missing regmap in rdev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61663171bea0ccb499f0818234c5be7ea6c4c791;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git regulator: max8649: fix missing regmap in rdev In probe(), rdev->regmap must be assigned. Signed-off-by: Haojian Zhuang Signed-off-by: Mark Brown --- 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)) {