diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-14 11:49:48 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-14 21:08:31 (GMT) |
commit | 4fa43a4a6f8d1b7a8f32e7ba654f36ef86ab1e56 (patch) | |
tree | de4dcc79b2d3398f7e5a7334f806000c3393a003 | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | linux-4fa43a4a6f8d1b7a8f32e7ba654f36ef86ab1e56.tar.xz |
regulator: max77693: 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>
-rw-r--r-- | drivers/regulator/max77693.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index 5fb899f..057d040 100644 --- a/drivers/regulator/max77693.c +++ b/drivers/regulator/max77693.c @@ -170,7 +170,7 @@ static int max77693_pmic_dt_parse_rdata(struct device *dev, struct max77693_regulator_data *tmp; int i, matched = 0; - np = of_find_node_by_name(dev->parent->of_node, "regulators"); + np = of_get_child_by_name(dev->parent->of_node, "regulators"); if (!np) return -EINVAL; |