aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/irq.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-08-28 04:47:55 -0400
committerPaul Mackerras <paulus@samba.org>2007-09-13 11:33:20 -0400
commit8528ab84ebe7a1eeed9b0acc808df86663d506c0 (patch)
treeb1037def36002586de1e366686376e29e451199d /arch/powerpc/kernel/irq.c
parent52964f87c64e6c6ea671b5bf3030fb1494090a48 (diff)
[POWERPC] Invert null match behaviour for irq_hosts
Currently if you don't specify a match callback for your irq_host it's assumed you match everything. This is a kind of opt-out approach, and turns out to be the exception rather than the rule. So change the semantics to be opt-in, ie. you don't match anything unless you provide a match callback. This in itself isn't very useful, but will allow us to provide a default match implementation in a subsequent patch. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r--arch/powerpc/kernel/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 79b451247b89..30fb8e2c5c9d 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -523,7 +523,7 @@ struct irq_host *irq_find_host(struct device_node *node)
523 */ 523 */
524 spin_lock_irqsave(&irq_big_lock, flags); 524 spin_lock_irqsave(&irq_big_lock, flags);
525 list_for_each_entry(h, &irq_hosts, link) 525 list_for_each_entry(h, &irq_hosts, link)
526 if (h->ops->match == NULL || h->ops->match(h, node)) { 526 if (h->ops->match != NULL && h->ops->match(h, node)) {
527 found = h; 527 found = h;
528 break; 528 break;
529 } 529 }