diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-08-28 04:47:55 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-13 11:33:20 -0400 |
commit | 6815800601d3e46b976c868e4e85fb6de32b9133 (patch) | |
tree | df047ed69d7b2b1a744625fd6b2b6f49ada47df4 /arch/powerpc/platforms/52xx/mpc52xx_pic.c | |
parent | 8528ab84ebe7a1eeed9b0acc808df86663d506c0 (diff) |
[POWERPC] Provide a default irq_host match, which matches on an exact of_node
The most common match semantic is an exact match based on the device node.
So provide a default implementation that does this, and hook it up if no
match routine is specified.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/52xx/mpc52xx_pic.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pic.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pic.c b/arch/powerpc/platforms/52xx/mpc52xx_pic.c index 1d793e4b8d5..0f4ca8a2b77 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pic.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pic.c | |||
@@ -241,12 +241,6 @@ static struct irq_chip mpc52xx_sdma_irqchip = { | |||
241 | * irq_host | 241 | * irq_host |
242 | */ | 242 | */ |
243 | 243 | ||
244 | static int mpc52xx_irqhost_match(struct irq_host *h, struct device_node *node) | ||
245 | { | ||
246 | pr_debug("%s: node=%p\n", __func__, node); | ||
247 | return h->of_node == node; | ||
248 | } | ||
249 | |||
250 | static int mpc52xx_irqhost_xlate(struct irq_host *h, struct device_node *ct, | 244 | static int mpc52xx_irqhost_xlate(struct irq_host *h, struct device_node *ct, |
251 | u32 * intspec, unsigned int intsize, | 245 | u32 * intspec, unsigned int intsize, |
252 | irq_hw_number_t * out_hwirq, | 246 | irq_hw_number_t * out_hwirq, |
@@ -367,7 +361,6 @@ static int mpc52xx_irqhost_map(struct irq_host *h, unsigned int virq, | |||
367 | } | 361 | } |
368 | 362 | ||
369 | static struct irq_host_ops mpc52xx_irqhost_ops = { | 363 | static struct irq_host_ops mpc52xx_irqhost_ops = { |
370 | .match = mpc52xx_irqhost_match, | ||
371 | .xlate = mpc52xx_irqhost_xlate, | 364 | .xlate = mpc52xx_irqhost_xlate, |
372 | .map = mpc52xx_irqhost_map, | 365 | .map = mpc52xx_irqhost_map, |
373 | }; | 366 | }; |