]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/mpc5121_ads_cpld: Prepare irq handler for irq argument removal
authorThomas Gleixner <tglx@linutronix.de>
Mon, 14 Sep 2015 08:11:26 +0000 (10:11 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 14 Sep 2015 08:30:04 +0000 (10:30 +0200)
The irq argument of most interrupt flow handlers is unused or merily
used instead of a local variable. The handlers which need the irq
argument can retrieve the irq number from the irq descriptor.

Search and update was done with coccinelle and the invaluable help of
Julia Lawall.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: linuxppc-dev@lists.ozlabs.org
arch/powerpc/platforms/512x/mpc5121_ads_cpld.c

index 11090ab4bf59a38f2b78074fd8b7a9e10467656d..cf8287487157fb6ad3029c0f395e6b05ecc800dd 100644 (file)
@@ -105,8 +105,10 @@ cpld_pic_get_irq(int offset, u8 ignore, u8 __iomem *statusp,
 }
 
 static void
-cpld_pic_cascade(unsigned int irq, struct irq_desc *desc)
+cpld_pic_cascade(unsigned int __irq, struct irq_desc *desc)
 {
+       unsigned int irq;
+
        irq = cpld_pic_get_irq(0, PCI_IGNORE, &cpld_regs->pci_status,
                &cpld_regs->pci_mask);
        if (irq != NO_IRQ) {