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_32.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_32.c')
-rw-r--r-- | arch/powerpc/kernel/pci_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index 47dc754465bb..14e300f85ce4 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c | |||
@@ -276,11 +276,11 @@ scan_OF_pci_childs(struct device_node *parent, pci_OF_scan_iterator filter, void | |||
276 | static struct device_node *scan_OF_for_pci_dev(struct device_node *parent, | 276 | static struct device_node *scan_OF_for_pci_dev(struct device_node *parent, |
277 | unsigned int devfn) | 277 | unsigned int devfn) |
278 | { | 278 | { |
279 | struct device_node *np = NULL; | 279 | struct device_node *np; |
280 | const u32 *reg; | 280 | const u32 *reg; |
281 | unsigned int psize; | 281 | unsigned int psize; |
282 | 282 | ||
283 | while ((np = of_get_next_child(parent, np)) != NULL) { | 283 | for_each_child_of_node(parent, np) { |
284 | reg = of_get_property(np, "reg", &psize); | 284 | reg = of_get_property(np, "reg", &psize); |
285 | if (reg == NULL || psize < 4) | 285 | if (reg == NULL || psize < 4) |
286 | continue; | 286 | continue; |