diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-01-02 23:13:37 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-16 22:57:20 -0500 |
commit | 85e99b9fffb62e101e38c74c935256fc589703c2 (patch) | |
tree | 60e27e43527332ac21be5c1c0ee95f11a61d6cf1 /arch/powerpc/kernel/rtas_pci.c | |
parent | e25c47ffa97ca5e4602593b03ce6d21cff652864 (diff) |
[POWERPC] arch/powerpc/kernel: Use for_each_child_of_node
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/rtas_pci.c')
-rw-r--r-- | arch/powerpc/kernel/rtas_pci.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c index 99aaae3409c0..433a0a0949fb 100644 --- a/arch/powerpc/kernel/rtas_pci.c +++ b/arch/powerpc/kernel/rtas_pci.c | |||
@@ -280,10 +280,7 @@ void __init find_and_init_phbs(void) | |||
280 | struct pci_controller *phb; | 280 | struct pci_controller *phb; |
281 | struct device_node *root = of_find_node_by_path("/"); | 281 | struct device_node *root = of_find_node_by_path("/"); |
282 | 282 | ||
283 | for (node = of_get_next_child(root, NULL); | 283 | for_each_child_of_node(root, node) { |
284 | node != NULL; | ||
285 | node = of_get_next_child(root, node)) { | ||
286 | |||
287 | if (node->type == NULL || (strcmp(node->type, "pci") != 0 && | 284 | if (node->type == NULL || (strcmp(node->type, "pci") != 0 && |
288 | strcmp(node->type, "pciex") != 0)) | 285 | strcmp(node->type, "pciex") != 0)) |
289 | continue; | 286 | continue; |