diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-14 17:19:57 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-14 21:17:59 +0000 |
commit | a4b4e66aadd05b1b8d2492ab914186359a11d0ec (patch) | |
tree | ff38809cc24e5b00f1a4d9e3be35b76da8d5ec72 /drivers/regulator/da9055-regulator.c | |
parent | dae6cdb422ba9708f152f313046dfc98a9336235 (diff) | |
download | linux-a4b4e66aadd05b1b8d2492ab914186359a11d0ec.tar.bz2 |
regulator: da9055: 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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/da9055-regulator.c')
-rw-r--r-- | drivers/regulator/da9055-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c index 3f334ea23c95..604a6f7c9cbf 100644 --- a/drivers/regulator/da9055-regulator.c +++ b/drivers/regulator/da9055-regulator.c @@ -559,7 +559,7 @@ static int da9055_regulator_dt_init(struct platform_device *pdev, if (!nproot) return -ENODEV; - np = of_find_node_by_name(nproot, "regulators"); + np = of_get_child_by_name(nproot, "regulators"); if (!np) return -ENODEV; |