regulator: mc13xxx: Use of_get_child_by_name
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 14 Feb 2014 11:49:59 +0000 (17:19 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 14 Feb 2014 21:19:27 +0000 (21:19 +0000)
commitfc5a6e5b0cf107517910b139e3d3af803fa09952
tree8312c7f5d611f0aff281f14d84a96e3370cb834a
parent38dbfb59d1175ef458d006556061adeaa8751b72
regulator: mc13xxx: 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>
drivers/regulator/mc13xxx-regulator-core.c