allwinner: regulators: pick correct DT subnode
So far the DT node describing the AXP803 PMIC used in many Allwinner A64
boards had only one subnode, so our code just entering the first subnode
to find all regulators worked fine.

However recent DT updates in the Linux kernel add more subnodes *before*
that, so we need to make sure to explicitly enter the "regulators"
subnode to find the information we are after.

Improve some DT node parsing error handling on the way.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
1 parent c6c10b0 commit c48d02bade88b07fa7f43aa44e5217f68e5d047f
@Andre Przywara Andre Przywara authored on 17 Feb 2019
Dimitris Papastamos committed on 8 Mar 2019
Showing 1 changed file
View
plat/allwinner/sun50i_a64/sunxi_power.c