diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-06-05 08:43:59 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-16 15:56:33 +0100 |
commit | 73d23ca732edf07ce2b62668821247bf1a636b54 (patch) | |
tree | 9e5cc0a0dcf4afaaa13410b5f67ac053b905d90f /drivers/regulator/ltc3589.c | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
regulator: ltc3589: Use of_get_child_by_name
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>
Diffstat (limited to 'drivers/regulator/ltc3589.c')
-rw-r--r-- | drivers/regulator/ltc3589.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c index 110a99ee1162..c8105182b8b8 100644 --- 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; |