irqchip: clps711x: Convert to handle_domain_irq
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 26 Aug 2014 10:03:22 +0000 (11:03 +0100)
committerJason Cooper <jason@lakedaemon.net>
Wed, 3 Sep 2014 13:10:32 +0000 (13:10 +0000)
Use the new handle_domain_irq method to handle interrupts.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/1409047421-27649-8-git-send-email-marc.zyngier@arm.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-clps711x.c

index 33340dc97d1da14977dcf0ad1c88cef1250b1f94..33127f131d7840b0c0ec4c8ca15b0aa46b9ab5ba 100644 (file)
@@ -76,24 +76,20 @@ static struct {
 
 static asmlinkage void __exception_irq_entry clps711x_irqh(struct pt_regs *regs)
 {
-       u32 irqnr, irqstat;
+       u32 irqstat;
 
        do {
                irqstat = readw_relaxed(clps711x_intc->intmr[0]) &
                          readw_relaxed(clps711x_intc->intsr[0]);
-               if (irqstat) {
-                       irqnr = irq_find_mapping(clps711x_intc->domain,
-                                                fls(irqstat) - 1);
-                       handle_IRQ(irqnr, regs);
-               }
+               if (irqstat)
+                       handle_domain_irq(clps711x_intc->domain,
+                                         fls(irqstat) - 1, regs);
 
                irqstat = readw_relaxed(clps711x_intc->intmr[1]) &
                          readw_relaxed(clps711x_intc->intsr[1]);
-               if (irqstat) {
-                       irqnr = irq_find_mapping(clps711x_intc->domain,
-                                                fls(irqstat) - 1 + 16);
-                       handle_IRQ(irqnr, regs);
-               }
+               if (irqstat)
+                       handle_domain_irq(clps711x_intc->domain,
+                                         fls(irqstat) - 1 + 16, regs);
        } while (irqstat);
 }