Selaa lähdekoodia

regulator: tps65218: Add the missing of_node assignment in probe

Add the missing of_node assignment in probe.

Fixes: 90e7d5262796 (regulator: tps65218: Add Regulator driver for TPS65218 PMIC)
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: <stable@vger.kernel.org> # v3.15
Keerthy 11 vuotta sitten
vanhempi
commit
d2fa87c3af
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      drivers/regulator/tps65218-regulator.c

+ 1 - 0
drivers/regulator/tps65218-regulator.c

@@ -240,6 +240,7 @@ static int tps65218_regulator_probe(struct platform_device *pdev)
 	config.init_data = init_data;
 	config.init_data = init_data;
 	config.driver_data = tps;
 	config.driver_data = tps;
 	config.regmap = tps->regmap;
 	config.regmap = tps->regmap;
+	config.of_node = pdev->dev.of_node;
 
 
 	rdev = devm_regulator_register(&pdev->dev, &regulators[id], &config);
 	rdev = devm_regulator_register(&pdev->dev, &regulators[id], &config);
 	if (IS_ERR(rdev)) {
 	if (IS_ERR(rdev)) {