Skip to content

Commit

Permalink
From patchwork series 420489
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox Snowpatch committed Aug 22, 2024
1 parent ddf9a4c commit 4858aa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powermac/pfunc_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static void __init uninorth_install_pfunc(void)
/*
* Install handlers for the hwclock child if any
*/
for (np = NULL; (np = of_get_next_child(uninorth_node, np)) != NULL;)
for_each_child_of_node(uninorth_node, np)
if (of_node_name_eq(np, "hw-clock")) {
unin_hwclock = np;
break;
Expand Down
5 changes: 1 addition & 4 deletions arch/powerpc/platforms/pseries/dlpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,8 @@ int dlpar_detach_node(struct device_node *dn)
struct device_node *child;
int rc;

child = of_get_next_child(dn, NULL);
while (child) {
for_each_child_of_node(dn, child)
dlpar_detach_node(child);
child = of_get_next_child(dn, child);
}

rc = of_detach_node(dn);
if (rc)
Expand Down

0 comments on commit 4858aa3

Please sign in to comment.