Re: [linux-sunxi] [PATCH] regulator: AXP20x: fix wrong call to of_find_node_by_name

2014-05-19 Thread Carlo Caione
On Mon, May 19, 2014 at 10:25 AM, Boris BREZILLON wrote: > 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 t

[linux-sunxi] [PATCH] regulator: AXP20x: fix wrong call to of_find_node_by_name

2014-05-19 Thread Boris BREZILLON
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 --- drivers/r