.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * udbg for zilog scc ports as found on Apple PowerMacs |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2001-2005 PPC 64 Team, IBM Corp |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or |
---|
7 | | - * modify it under the terms of the GNU General Public License |
---|
8 | | - * as published by the Free Software Foundation; either version |
---|
9 | | - * 2 of the License, or (at your option) any later version. |
---|
10 | 6 | */ |
---|
11 | 7 | #include <linux/types.h> |
---|
12 | 8 | #include <asm/udbg.h> |
---|
.. | .. |
---|
84 | 80 | path = of_get_property(of_chosen, "linux,stdout-path", NULL); |
---|
85 | 81 | if (path != NULL) |
---|
86 | 82 | stdout = of_find_node_by_path(path); |
---|
87 | | - for (ch = NULL; (ch = of_get_next_child(escc, ch)) != NULL;) { |
---|
| 83 | + for_each_child_of_node(escc, ch) { |
---|
88 | 84 | if (ch == stdout) |
---|
89 | 85 | ch_def = of_node_get(ch); |
---|
90 | | - if (strcmp(ch->name, "ch-a") == 0) |
---|
| 86 | + if (of_node_name_eq(ch, "ch-a")) |
---|
91 | 87 | ch_a = of_node_get(ch); |
---|
92 | 88 | } |
---|
93 | 89 | if (ch_def == NULL && !force_scc) |
---|