diff options
| -rw-r--r-- | drivers/regulator/axp20x-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index 78a29e60f53a..61ae4d4fbdd0 100644 --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c | |||
| @@ -188,7 +188,7 @@ static int axp20x_regulator_parse_dt(struct platform_device *pdev) | |||
| 188 | if (!np) | 188 | if (!np) |
| 189 | return 0; | 189 | return 0; |
| 190 | 190 | ||
| 191 | regulators = of_find_node_by_name(np, "regulators"); | 191 | regulators = of_get_child_by_name(np, "regulators"); |
| 192 | if (!regulators) { | 192 | if (!regulators) { |
| 193 | dev_warn(&pdev->dev, "regulators node not found\n"); | 193 | dev_warn(&pdev->dev, "regulators node not found\n"); |
| 194 | } else { | 194 | } else { |
