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
parent 494c8233
...@@ -246,9 +246,7 @@ static void setup_axp803_rails(const void *fdt) ...@@ -246,9 +246,7 @@ static void setup_axp803_rails(const void *fdt)
} }
/* iterate over all regulators to find used ones */ /* iterate over all regulators to find used ones */
for (node = fdt_first_subnode(fdt, node); fdt_for_each_subnode(node, fdt, node) {
node >= 0;
node = fdt_next_subnode(fdt, node)) {
const struct axp_regulator *reg; const struct axp_regulator *reg;
const char *name; const char *name;
int length; 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