projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
regulator: max8997: Use of_get_child_by_name
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 14 Feb 2014 11:49:52 +0000
(17:19 +0530)
committer
Mark Brown
<broonie@linaro.org>
Fri, 14 Feb 2014 21:11:39 +0000
(21:11 +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/max8997.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/max8997.c
b/drivers/regulator/max8997.c
index 2d618fc9c1af51da55ebce43be2e7c62db8c3eab..10108f2941e3652f27dd96fec1cb4ddc357dc0f9 100644
(file)
--- a/
drivers/regulator/max8997.c
+++ b/
drivers/regulator/max8997.c
@@
-924,7
+924,7
@@
static int max8997_pmic_dt_parse_pdata(struct platform_device *pdev,
return -ENODEV;
}
- regulators_np = of_
find_node
_by_name(pmic_np, "regulators");
+ regulators_np = of_
get_child
_by_name(pmic_np, "regulators");
if (!regulators_np) {
dev_err(&pdev->dev, "could not find regulators sub-node\n");
return -EINVAL;
This page took
0.024976 seconds
and
5
git commands to generate.