Skip to content

Commit

Permalink
irqchip: or1k-pic: Convert to handle_domain_irq
Browse files Browse the repository at this point in the history
Use the new handle_domain_irq method to handle interrupts.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Link: https://lkml.kernel.org/r/1409047421-27649-22-git-send-email-marc.zyngier@arm.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Marc Zyngier authored and Jason Cooper committed Sep 3, 2014
1 parent 31b7b6a commit b0fee1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/irqchip/irq-or1k-pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ static inline int pic_get_irq(int first)
else
hwirq = hwirq + first - 1;

return irq_find_mapping(root_domain, hwirq);
return hwirq;
}

static void or1k_pic_handle_irq(struct pt_regs *regs)
{
int irq = -1;

while ((irq = pic_get_irq(irq + 1)) != NO_IRQ)
handle_IRQ(irq, regs);
handle_domain_irq(root_domain, irq, regs);
}

static int or1k_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)
Expand Down

0 comments on commit b0fee1d

Please sign in to comment.