regulator: s2mps11: Use of_get_child_by_name
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 4 Mar 2014 05:46:57 +0000 (11:16 +0530)
committerMark Brown <broonie@linaro.org>
Wed, 19 Mar 2014 13:11:07 +0000 (13:11 +0000)
commit14256f734ecce8dfb8fdce0e138d18f3fadf882e
tree3ab4e750c9750c5d8fbda7538e7931c6f3119880
parent8d7c7726cea29bd5a7dd6e898b1693c12237144b
regulator: s2mps11: 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/s2mps11.c