projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7e9e52
)
regulator: as3711: Use of_get_child_by_name
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 14 Feb 2014 11:49:55 +0000
(17:19 +0530)
committer
Mark Brown
<broonie@linaro.org>
Fri, 14 Feb 2014 21:15:46 +0000
(21:15 +0000)
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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/as3711-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/as3711-regulator.c
b/drivers/regulator/as3711-regulator.c
index 67fd548dcdba02653a2e91c2227985a31abf75c1..856c55f3a83202349410633c9c670ced9edb2e7c 100644
(file)
--- a/
drivers/regulator/as3711-regulator.c
+++ b/
drivers/regulator/as3711-regulator.c
@@
-191,7
+191,7
@@
static int as3711_regulator_parse_dt(struct device *dev,
{
struct as3711_regulator_pdata *pdata = dev_get_platdata(dev);
struct device_node *regulators =
- of_
find_node
_by_name(dev->parent->of_node, "regulators");
+ of_
get_child
_by_name(dev->parent->of_node, "regulators");
struct of_regulator_match *match;
int ret, i;