diff options
| -rw-r--r-- | drivers/regulator/tps65090-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c index bd611cdf6e1c..676f75548f00 100644 --- a/drivers/regulator/tps65090-regulator.c +++ b/drivers/regulator/tps65090-regulator.c | |||
| @@ -180,7 +180,7 @@ static struct tps65090_platform_data *tps65090_parse_dt_reg_data( | |||
| 180 | return ERR_PTR(-ENOMEM); | 180 | return ERR_PTR(-ENOMEM); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | regulators = of_find_node_by_name(np, "regulators"); | 183 | regulators = of_get_child_by_name(np, "regulators"); |
| 184 | if (!regulators) { | 184 | if (!regulators) { |
| 185 | dev_err(&pdev->dev, "regulator node not found\n"); | 185 | dev_err(&pdev->dev, "regulator node not found\n"); |
| 186 | return ERR_PTR(-ENODEV); | 186 | return ERR_PTR(-ENODEV); |
