ARM/pxa: Prepare *_irq_handler for irq argument removal
authorThomas Gleixner <tglx@linutronix.de>
Mon, 13 Jul 2015 08:17:54 +0000 (10:17 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 13 Jul 2015 12:59:15 +0000 (14:59 +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: Russell King <linux+kernel@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
arch/arm/mach-pxa/cm-x2xx-pci.c
arch/arm/mach-pxa/lpd270.c
arch/arm/mach-pxa/pcm990-baseboard.c
arch/arm/mach-pxa/viper.c
arch/arm/mach-pxa/zeus.c

index d8f816c24a2f69509be91c821f67d6b7a157fcc8..1fa79f1f832deeacf04529f6772ceaab1f6eed15 100644 (file)
@@ -29,8 +29,9 @@
 void __iomem *it8152_base_address;
 static int cmx2xx_it8152_irq_gpio;
 
-static void cmx2xx_it8152_irq_demux(unsigned int irq, struct irq_desc *desc)
+static void cmx2xx_it8152_irq_demux(unsigned int __irq, struct irq_desc *desc)
 {
+       unsigned int irq = irq_desc_get_irq(desc);
        /* clear our parent irq */
        desc->irq_data.chip->irq_ack(&desc->irq_data);
 
index eaee2c20b18956863557e0aba66e24f09e3f5070..799d8698cf035a3635dd51d31819ed951dbf28a2 100644 (file)
@@ -120,8 +120,9 @@ static struct irq_chip lpd270_irq_chip = {
        .irq_unmask     = lpd270_unmask_irq,
 };
 
-static void lpd270_irq_handler(unsigned int irq, struct irq_desc *desc)
+static void lpd270_irq_handler(unsigned int __irq, struct irq_desc *desc)
 {
+       unsigned int irq;
        unsigned long pending;
 
        pending = __raw_readw(LPD270_INT_STATUS) & lpd270_irq_enabled;
index 2897da2a5df6e69b7d6d330f2685eeedc4e09733..16226754b01a2a3824f88dc0e9a1ef21260721fd 100644 (file)
@@ -284,8 +284,9 @@ static struct irq_chip pcm990_irq_chip = {
        .irq_unmask     = pcm990_unmask_irq,
 };
 
-static void pcm990_irq_handler(unsigned int irq, struct irq_desc *desc)
+static void pcm990_irq_handler(unsigned int __irq, struct irq_desc *desc)
 {
+       unsigned int irq;
        unsigned long pending;
 
        pending = ~pcm990_cpld_readb(PCM990_CTRL_INTSETCLR);
index de3b08073fe7604ececdd1e5dc259e0244a53201..687554b318f4512ea5023583c4e882e0c683cfc8 100644 (file)
@@ -276,8 +276,9 @@ static inline unsigned long viper_irq_pending(void)
                        viper_irq_enabled_mask;
 }
 
-static void viper_irq_handler(unsigned int irq, struct irq_desc *desc)
+static void viper_irq_handler(unsigned int __irq, struct irq_desc *desc)
 {
+       unsigned int irq;
        unsigned long pending;
 
        pending = viper_irq_pending();
index ac2ae5c71ab45b7428440ee8925b121533ba9509..0bba62c81393ec432280b616abee3ed4c78882ba 100644 (file)
@@ -105,8 +105,9 @@ static inline unsigned long zeus_irq_pending(void)
        return __raw_readw(ZEUS_CPLD_ISA_IRQ) & zeus_irq_enabled_mask;
 }
 
-static void zeus_irq_handler(unsigned int irq, struct irq_desc *desc)
+static void zeus_irq_handler(unsigned int __irq, struct irq_desc *desc)
 {
+       unsigned int irq;
        unsigned long pending;
 
        pending = zeus_irq_pending();