projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7171511
)
regulator: ltc3589: Use of_get_child_by_name
author
Axel Lin
<axel.lin@ingics.com>
Thu, 5 Jun 2014 00:43:59 +0000
(08:43 +0800)
committer
Mark Brown
<broonie@linaro.org>
Mon, 16 Jun 2014 14:56:33 +0000
(15:56 +0100)
of_find_node_by_name() walks the allnodes list, and can thus walk
outside of the parent node. Use of_get_child_by_name() instead.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/ltc3589.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/ltc3589.c
b/drivers/regulator/ltc3589.c
index 110a99ee1162fdcbad79b20d7e3380258e2b05dd..c8105182b8b8ecf26a76d606fe036551c0a42a8d 100644
(file)
--- a/
drivers/regulator/ltc3589.c
+++ b/
drivers/regulator/ltc3589.c
@@
-255,7
+255,7
@@
static int ltc3589_parse_regulators_dt(struct ltc3589 *ltc3589)
struct device_node *node;
int i, ret;
- node = of_
find_node
_by_name(dev->of_node, "regulators");
+ node = of_
get_child
_by_name(dev->of_node, "regulators");
if (!node) {
dev_err(dev, "regulators node not found\n");
return -EINVAL;