irqchip/i8259: Prepare i8259_irq_dispatch for irq argument removal
authorThomas Gleixner <tglx@linutronix.de>
Fri, 31 Jul 2015 19:59:10 +0000 (21:59 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 31 Jul 2015 20:20:04 +0000 (22:20 +0200)
Make irq a local variable and retrieve domain from the irq descriptor
which avoid a redundant lookup.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
drivers/irqchip/irq-i8259.c

index a29638a1e6e59da3ffee0b7c733b861740ebc452..4836102ba31205ddc5643e1bfacc24e4cd81eacb 100644 (file)
@@ -352,10 +352,11 @@ void __init init_i8259_irqs(void)
        __init_i8259_irqs(NULL);
 }
 
-static void i8259_irq_dispatch(unsigned int irq, struct irq_desc *desc)
+static void i8259_irq_dispatch(unsigned int __irq, struct irq_desc *desc)
 {
-       struct irq_domain *domain = irq_get_handler_data(irq);
+       struct irq_domain *domain = irq_desc_get_handler_data(desc);
        int hwirq = i8259_irq();
+       unsigned int irq;
 
        if (hwirq < 0)
                return;