aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/da9052-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9052-regulator.c b/drivers/regulator/da9052-regulator.c
index 3adeaeffc485..889c7c9b9f15 100644
--- a/drivers/regulator/da9052-regulator.c
+++ b/drivers/regulator/da9052-regulator.c
@@ -401,7 +401,7 @@ static int da9052_regulator_probe(struct platform_device *pdev)
401 if (!nproot) 401 if (!nproot)
402 return -ENODEV; 402 return -ENODEV;
403 403
404 nproot = of_find_node_by_name(nproot, "regulators"); 404 nproot = of_get_child_by_name(nproot, "regulators");
405 if (!nproot) 405 if (!nproot)
406 return -ENODEV; 406 return -ENODEV;
407 407