aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/uic.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
commit6815800601d3e46b976c868e4e85fb6de32b9133 (patch)
treedf047ed69d7b2b1a744625fd6b2b6f49ada47df4 /arch/powerpc/sysdev/uic.c
parent8528ab84ebe7a1eeed9b0acc808df86663d506c0 (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/sysdev/uic.c')
-rw-r--r--arch/powerpc/sysdev/uic.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/sysdev/uic.c b/arch/powerpc/sysdev/uic.c
index bf376675417..5149716c734 100644
--- a/arch/powerpc/sysdev/uic.c
+++ b/arch/powerpc/sysdev/uic.c
@@ -215,11 +215,6 @@ out_unlock:
215 spin_unlock(&desc->lock); 215 spin_unlock(&desc->lock);
216} 216}
217 217
218static int uic_host_match(struct irq_host *h, struct device_node *node)
219{
220 return h->of_node == node;
221}
222
223static int uic_host_map(struct irq_host *h, unsigned int virq, 218static int uic_host_map(struct irq_host *h, unsigned int virq,
224 irq_hw_number_t hw) 219 irq_hw_number_t hw)
225{ 220{
@@ -249,7 +244,6 @@ static int uic_host_xlate(struct irq_host *h, struct device_node *ct,
249} 244}
250 245
251static struct irq_host_ops uic_host_ops = { 246static struct irq_host_ops uic_host_ops = {
252 .match = uic_host_match,
253 .map = uic_host_map, 247 .map = uic_host_map,
254 .xlate = uic_host_xlate, 248 .xlate = uic_host_xlate,
255}; 249};