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/sysdev/mpc8xx_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/sysdev/mpc8xx_pic.c')
-rw-r--r-- | arch/powerpc/sysdev/mpc8xx_pic.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/sysdev/mpc8xx_pic.c b/arch/powerpc/sysdev/mpc8xx_pic.c index f20a4d43d104..565156ae65bc 100644 --- a/arch/powerpc/sysdev/mpc8xx_pic.c +++ b/arch/powerpc/sysdev/mpc8xx_pic.c | |||
@@ -119,11 +119,6 @@ unsigned int mpc8xx_get_irq(void) | |||
119 | 119 | ||
120 | } | 120 | } |
121 | 121 | ||
122 | static int mpc8xx_pic_host_match(struct irq_host *h, struct device_node *node) | ||
123 | { | ||
124 | return h->of_node == node; | ||
125 | } | ||
126 | |||
127 | static int mpc8xx_pic_host_map(struct irq_host *h, unsigned int virq, | 122 | static int mpc8xx_pic_host_map(struct irq_host *h, unsigned int virq, |
128 | irq_hw_number_t hw) | 123 | irq_hw_number_t hw) |
129 | { | 124 | { |
@@ -157,7 +152,6 @@ static int mpc8xx_pic_host_xlate(struct irq_host *h, struct device_node *ct, | |||
157 | 152 | ||
158 | 153 | ||
159 | static struct irq_host_ops mpc8xx_pic_host_ops = { | 154 | static struct irq_host_ops mpc8xx_pic_host_ops = { |
160 | .match = mpc8xx_pic_host_match, | ||
161 | .map = mpc8xx_pic_host_map, | 155 | .map = mpc8xx_pic_host_map, |
162 | .xlate = mpc8xx_pic_host_xlate, | 156 | .xlate = mpc8xx_pic_host_xlate, |
163 | }; | 157 | }; |