提交 61663171 编写于 作者: H Haojian Zhuang 提交者: Mark Brown

regulator: max8649: fix missing regmap in rdev

In probe(), rdev->regmap must be assigned.
Signed-off-by: NHaojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 b0e4d7bf
...@@ -259,6 +259,7 @@ static int __devinit max8649_regulator_probe(struct i2c_client *client, ...@@ -259,6 +259,7 @@ static int __devinit max8649_regulator_probe(struct i2c_client *client,
config.dev = &client->dev; config.dev = &client->dev;
config.init_data = pdata->regulator; config.init_data = pdata->regulator;
config.driver_data = info; config.driver_data = info;
config.regmap = info->regmap;
info->regulator = regulator_register(&dcdc_desc, &config); info->regulator = regulator_register(&dcdc_desc, &config);
if (IS_ERR(info->regulator)) { if (IS_ERR(info->regulator)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册