Commit a8e10cb7 authored by Marc Zyngier's avatar Marc Zyngier Committed by Jason Cooper

irqchip: clps711x: Convert to handle_domain_irq

Use the new handle_domain_irq method to handle interrupts.
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/1409047421-27649-8-git-send-email-marc.zyngier@arm.comSigned-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent e89c6a06
...@@ -76,24 +76,20 @@ static struct { ...@@ -76,24 +76,20 @@ static struct {
static asmlinkage void __exception_irq_entry clps711x_irqh(struct pt_regs *regs) static asmlinkage void __exception_irq_entry clps711x_irqh(struct pt_regs *regs)
{ {
u32 irqnr, irqstat; u32 irqstat;
do { do {
irqstat = readw_relaxed(clps711x_intc->intmr[0]) & irqstat = readw_relaxed(clps711x_intc->intmr[0]) &
readw_relaxed(clps711x_intc->intsr[0]); readw_relaxed(clps711x_intc->intsr[0]);
if (irqstat) { if (irqstat)
irqnr = irq_find_mapping(clps711x_intc->domain, handle_domain_irq(clps711x_intc->domain,
fls(irqstat) - 1); fls(irqstat) - 1, regs);
handle_IRQ(irqnr, regs);
}
irqstat = readw_relaxed(clps711x_intc->intmr[1]) & irqstat = readw_relaxed(clps711x_intc->intmr[1]) &
readw_relaxed(clps711x_intc->intsr[1]); readw_relaxed(clps711x_intc->intsr[1]);
if (irqstat) { if (irqstat)
irqnr = irq_find_mapping(clps711x_intc->domain, handle_domain_irq(clps711x_intc->domain,
fls(irqstat) - 1 + 16); fls(irqstat) - 1 + 16, regs);
handle_IRQ(irqnr, regs);
}
} while (irqstat); } while (irqstat);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment