Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e76b9cc7 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: da9052: initialize of_node param for regulator register



Initialize config.of_node for regulator before registering.
This is needed for DT based regulator support.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent c06eed39
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -410,6 +410,7 @@ static int __devinit da9052_regulator_probe(struct platform_device *pdev)
					 regulator->info->reg_desc.name)) {
					 regulator->info->reg_desc.name)) {
				config.init_data = of_get_regulator_init_data(
				config.init_data = of_get_regulator_init_data(
					&pdev->dev, np);
					&pdev->dev, np);
				config.of_node = np;
				break;
				break;
			}
			}
		}
		}