aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/tps62360-regulator.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-05-20 21:48:47 +0530
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-20 18:22:41 +0100
commit9fc3815e26efd044c1a1d0770b4335cd00c833c0 (patch)
tree5b3c84c4488036270a3c16aa0b58697de8ef8dcd /drivers/regulator/tps62360-regulator.c
parent68d8c1cd5158e1452c454dadbc64b3955e88e98b (diff)
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: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps62360-regulator.c')
-rw-r--r--drivers/regulator/tps62360-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c
index b5be0d0f9f1..e534269ed44 100644
--- a/drivers/regulator/tps62360-regulator.c
+++ b/drivers/regulator/tps62360-regulator.c
@@ -490,6 +490,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
config.dev = &client->dev;
config.init_data = pdata->reg_init_data;
config.driver_data = tps;
+ config.of_node = client->dev.of_node;
/* Register the regulators */
rdev = regulator_register(&tps->desc, &config);