regulator: s5m8767: Use of_get_child_by_name
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 13 Feb 2014 11:35:06 +0000 (17:05 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 13 Feb 2014 18:25:40 +0000 (18:25 +0000)
commit4e52c03dfcdef5ad1415e18af0e7230d98ff3a7c
tree010a86e5d049167852372cb0ade725baef5f329e
parent38dbfb59d1175ef458d006556061adeaa8751b72
regulator: s5m8767: 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/s5m8767.c