allwinner: a64: power: Use fdt_for_each_subnode
This simplifies the code a bit. Verified to produce the same binary. Signed-off-by: Samuel Holland <samuel@sholland.org> Change-Id: Ie1ec1ce2ea39c46525840906826c90a8a7eff287
This commit is contained in:
parent
494c823361
commit
79b8546507
|
@ -246,9 +246,7 @@ static void setup_axp803_rails(const void *fdt)
|
|||
}
|
||||
|
||||
/* iterate over all regulators to find used ones */
|
||||
for (node = fdt_first_subnode(fdt, node);
|
||||
node >= 0;
|
||||
node = fdt_next_subnode(fdt, node)) {
|
||||
fdt_for_each_subnode(node, fdt, node) {
|
||||
const struct axp_regulator *reg;
|
||||
const char *name;
|
||||
int length;
|
||||
|
|
Loading…
Reference in New Issue