Commit 9fc3815e authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Mark Brown

regulator: tps62360: dt: initialize of_node param for regulator register.

Initialize config.of_node for regulator before registering.
This is needed for DT based regulator support.
Regulator stores this of_node value in rdev->dev.of_node
and used for lookup when client ask for regulator_get().
Signed-off-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 68d8c1cd
...@@ -490,6 +490,7 @@ static int __devinit tps62360_probe(struct i2c_client *client, ...@@ -490,6 +490,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
config.dev = &client->dev; config.dev = &client->dev;
config.init_data = pdata->reg_init_data; config.init_data = pdata->reg_init_data;
config.driver_data = tps; config.driver_data = tps;
config.of_node = client->dev.of_node;
/* Register the regulators */ /* Register the regulators */
rdev = regulator_register(&tps->desc, &config); rdev = regulator_register(&tps->desc, &config);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment