regulator: ltc3589: Use of_get_child_by_name
authorAxel Lin <axel.lin@ingics.com>
Thu, 5 Jun 2014 00:43:59 +0000 (08:43 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 14:56:33 +0000 (15:56 +0100)
commit59affb1804be832db81935c8c6338f5f42215ff1
tree9e5cc0a0dcf4afaaa13410b5f67ac053b905d90f
parent29230ba12c9ebdc4bb6e22babcaec9dfa3d76ff4
regulator: ltc3589: 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: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/ltc3589.c