diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2008-11-12 19:20:37 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-11-19 06:05:01 +0100 |
commit | 54018178ef05e32f140158cb7d7770b66042d131 (patch) | |
tree | 9301e6bae00b5674a5b3a59c9ca47dd055b0d224 /arch/powerpc/kernel/prom_parse.c | |
parent | of: Add helpers for finding device nodes which have a given property (diff) | |
download | linux-54018178ef05e32f140158cb7d7770b66042d131.tar.xz linux-54018178ef05e32f140158cb7d7770b66042d131.zip |
powerpc: Use for_each_node_with_property() in of_irq_map_init()
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/prom_parse.c')
-rw-r--r-- | arch/powerpc/kernel/prom_parse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c index bc1fb27368af..2a1c02c56967 100644 --- a/arch/powerpc/kernel/prom_parse.c +++ b/arch/powerpc/kernel/prom_parse.c @@ -731,10 +731,7 @@ void of_irq_map_init(unsigned int flags) if (flags & OF_IMAP_NO_PHANDLE) { struct device_node *np; - for(np = NULL; (np = of_find_all_nodes(np)) != NULL;) { - if (of_get_property(np, "interrupt-controller", NULL) - == NULL) - continue; + for_each_node_with_property(np, "interrupt-controller") { /* Skip /chosen/interrupt-controller */ if (strcmp(np->name, "chosen") == 0) continue; |