Commit 79b85465 authored by Samuel Holland's avatar Samuel Holland
Browse files

allwinner: a64: power: Use fdt_for_each_subnode


This simplifies the code a bit. Verified to produce the same binary.
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Change-Id: Ie1ec1ce2ea39c46525840906826c90a8a7eff287
Showing with 1 addition and 3 deletions
+1 -3
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment