regulator: AXP20x: fix wrong call to of_find_node_by_name
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Mon, 19 May 2014 08:25:30 +0000 (10:25 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 19 May 2014 16:40:06 +0000 (17:40 +0100)
The of_find_node_by_name function will search for a DT node named
"regulators" after the provided np node, but will not ensure that this node
is a child of np.
This might result in retrieving a "regulators" node that is not related to
the axp20x PMIC.

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Carlo Caione <carlo@caione.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/axp20x-regulator.c

Simple merge