mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
b0e4d7bf8b
commit
61663171be
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user