powerpc: use for_each_child_of_node() macro
[linux-2.6-block.git] / arch / powerpc / platforms / powermac / udbg_scc.c
index 6b61a18e8db33489c16c6c05803a19d1e29340b0..f286bdfe8346e35ac9074a6ef69e7cb84beb9723 100644 (file)
@@ -80,7 +80,7 @@ void udbg_scc_init(int force_scc)
        path = of_get_property(of_chosen, "linux,stdout-path", NULL);
        if (path != NULL)
                stdout = of_find_node_by_path(path);
-       for (ch = NULL; (ch = of_get_next_child(escc, ch)) != NULL;) {
+       for_each_child_of_node(escc, ch) {
                if (ch == stdout)
                        ch_def = of_node_get(ch);
                if (of_node_name_eq(ch, "ch-a"))