blackfin: Prepare irq handlers for irq argument removal
authorThomas Gleixner <tglx@linutronix.de>
Fri, 31 Jul 2015 19:50:30 +0000 (21:50 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 31 Jul 2015 20:20:05 +0000 (22:20 +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: Steven Miao <realmz6@gmail.com>
Cc: adi-buildroot-devel@lists.sourceforge.net
arch/blackfin/mach-bf537/ints-priority.c
arch/blackfin/mach-common/ints-priority.c

index 2137a209a22bdc8f427c1e29c46cc42c97448e28..14b2f74554dc6de142955b98482cbd8c4ff3e76b 100644 (file)
@@ -182,9 +182,11 @@ static struct irq_chip bf537_mac_rx_irqchip = {
        .irq_unmask = bf537_mac_rx_unmask_irq,
 };
 
-static void bf537_demux_mac_rx_irq(unsigned int int_irq,
+static void bf537_demux_mac_rx_irq(unsigned int __int_irq,
                                   struct irq_desc *desc)
 {
+       unsigned int int_irq = irq_desc_get_irq(desc);
+
        if (bfin_read_DMA1_IRQ_STATUS() & (DMA_DONE | DMA_ERR))
                bfin_handle_irq(IRQ_MAC_RX);
        else
index 2eaf83a1a9814e482d213e4cf8199868d6007be2..a6d1b03cdf3693d2905e27ff113f6bbe34c7c056 100644 (file)
@@ -825,9 +825,9 @@ static void bfin_demux_gpio_block(unsigned int irq)
        }
 }
 
-void bfin_demux_gpio_irq(unsigned int inta_irq,
-                       struct irq_desc *desc)
+void bfin_demux_gpio_irq(unsigned int __inta_irq, struct irq_desc *desc)
 {
+       unsigned int inta_irq = irq_desc_get_irq(desc);
        unsigned int irq;
 
        switch (inta_irq) {