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/pci_64.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/pci_64.c')
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 5949bbabd7fb..1930f393d01c 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -227,7 +227,7 @@ EXPORT_SYMBOL(of_create_pci_dev); | |||
227 | void __devinit of_scan_bus(struct device_node *node, | 227 | void __devinit of_scan_bus(struct device_node *node, |
228 | struct pci_bus *bus) | 228 | struct pci_bus *bus) |
229 | { | 229 | { |
230 | struct device_node *child = NULL; | 230 | struct device_node *child; |
231 | const u32 *reg; | 231 | const u32 *reg; |
232 | int reglen, devfn; | 232 | int reglen, devfn; |
233 | struct pci_dev *dev; | 233 | struct pci_dev *dev; |
@@ -235,7 +235,7 @@ void __devinit of_scan_bus(struct device_node *node, | |||
235 | DBG("of_scan_bus(%s) bus no %d... \n", node->full_name, bus->number); | 235 | DBG("of_scan_bus(%s) bus no %d... \n", node->full_name, bus->number); |
236 | 236 | ||
237 | /* Scan direct children */ | 237 | /* Scan direct children */ |
238 | while ((child = of_get_next_child(node, child)) != NULL) { | 238 | for_each_child_of_node(node, child) { |
239 | DBG(" * %s\n", child->full_name); | 239 | DBG(" * %s\n", child->full_name); |
240 | reg = of_get_property(child, "reg", ®len); | 240 | reg = of_get_property(child, "reg", ®len); |
241 | if (reg == NULL || reglen < 20) | 241 | if (reg == NULL || reglen < 20) |