[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>
This commit is contained in:
committed by
Paul Mackerras
parent
8528ab84eb
commit
6815800601
@ -119,11 +119,6 @@ unsigned int mpc8xx_get_irq(void)
|
||||
|
||||
}
|
||||
|
||||
static int mpc8xx_pic_host_match(struct irq_host *h, struct device_node *node)
|
||||
{
|
||||
return h->of_node == node;
|
||||
}
|
||||
|
||||
static int mpc8xx_pic_host_map(struct irq_host *h, unsigned int virq,
|
||||
irq_hw_number_t hw)
|
||||
{
|
||||
@ -157,7 +152,6 @@ static int mpc8xx_pic_host_xlate(struct irq_host *h, struct device_node *ct,
|
||||
|
||||
|
||||
static struct irq_host_ops mpc8xx_pic_host_ops = {
|
||||
.match = mpc8xx_pic_host_match,
|
||||
.map = mpc8xx_pic_host_map,
|
||||
.xlate = mpc8xx_pic_host_xlate,
|
||||
};
|
||||
|
Reference in New Issue
Block a user