Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a6016c52 authored by Boris Brezillon's avatar Boris Brezillon Committed by Mark Brown
Browse files

regulator: AXP20x: fix wrong call to of_find_node_by_name



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: default avatarBoris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: default avatarCarlo Caione <carlo@caione.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent dfe7a1b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment