diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/regulator/tps6586x-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c index 2c9155b66f09..c8e9742a4468 100644 --- a/drivers/regulator/tps6586x-regulator.c +++ b/drivers/regulator/tps6586x-regulator.c | |||
| @@ -298,7 +298,7 @@ static struct tps6586x_platform_data *tps6586x_parse_regulator_dt( | |||
| 298 | struct tps6586x_platform_data *pdata; | 298 | struct tps6586x_platform_data *pdata; |
| 299 | int err; | 299 | int err; |
| 300 | 300 | ||
| 301 | regs = of_find_node_by_name(np, "regulators"); | 301 | regs = of_get_child_by_name(np, "regulators"); |
| 302 | if (!regs) { | 302 | if (!regs) { |
| 303 | dev_err(&pdev->dev, "regulator node not found\n"); | 303 | dev_err(&pdev->dev, "regulator node not found\n"); |
| 304 | return NULL; | 304 | return NULL; |
