Skip to content

Commit

Permalink
regulator: da9052: initialize of_node param for regulator register
Browse files Browse the repository at this point in the history
Initialize config.of_node for regulator before registering.
This is needed for DT based regulator support.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jul 12, 2012
1 parent c06eed3 commit e76b9cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/da9052-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ static int __devinit da9052_regulator_probe(struct platform_device *pdev)
regulator->info->reg_desc.name)) {
config.init_data = of_get_regulator_init_data(
&pdev->dev, np);
config.of_node = np;
break;
}
}
Expand Down

0 comments on commit e76b9cc

Please sign in to comment.