projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regulator: tps6586x: get regulators node from parent node only
[cascardo/linux.git]
/
drivers
/
regulator
/
tps6586x-regulator.c
diff --git
a/drivers/regulator/tps6586x-regulator.c
b/drivers/regulator/tps6586x-regulator.c
index
2c9155b
..
c8e9742
100644
(file)
--- 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(
struct tps6586x_platform_data *pdata;
int err;
- regs = of_
find_node
_by_name(np, "regulators");
+ regs = of_
get_child
_by_name(np, "regulators");
if (!regs) {
dev_err(&pdev->dev, "regulator node not found\n");
return NULL;