diff options
| -rw-r--r-- | drivers/regulator/da9055-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c index 3f334ea23c95..604a6f7c9cbf 100644 --- a/drivers/regulator/da9055-regulator.c +++ b/drivers/regulator/da9055-regulator.c | |||
| @@ -559,7 +559,7 @@ static int da9055_regulator_dt_init(struct platform_device *pdev, | |||
| 559 | if (!nproot) | 559 | if (!nproot) |
| 560 | return -ENODEV; | 560 | return -ENODEV; |
| 561 | 561 | ||
| 562 | np = of_find_node_by_name(nproot, "regulators"); | 562 | np = of_get_child_by_name(nproot, "regulators"); |
| 563 | if (!np) | 563 | if (!np) |
| 564 | return -ENODEV; | 564 | return -ENODEV; |
| 565 | 565 | ||
