Skip to content

Commit

Permalink
regulator: tps62360: dt: initialize of_node param for regulator regis…
Browse files Browse the repository at this point in the history
…ter.

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>
  • Loading branch information
Laxman Dewangan authored and Mark Brown committed May 20, 2012
1 parent 68d8c1c commit 9fc3815
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/tps62360-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fc3815

Please sign in to comment.