regulator: as3711: Use of_get_child_by_name
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 14 Feb 2014 11:49:55 +0000 (17:19 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 14 Feb 2014 21:15:46 +0000 (21:15 +0000)
commiteecb02c003e42d604a15b59d57c0ec9417293257
tree873babe57e3164502479df958b7088e634caae8e
parentf7e9e52f7d29dd24c8d3fd3c5939218197972e4f
regulator: as3711: 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/as3711-regulator.c