Skip to content

Commit 71093eb

Browse files
committed
irqchip/versatile-fpga: Prepare fpga_irq_handle for irq argument removal
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>
1 parent e616e9a commit 71093eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/irqchip/irq-versatile-fpga.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ static void fpga_irq_unmask(struct irq_data *d)
6565
writel(mask, f->base + IRQ_ENABLE_SET);
6666
}
6767

68-
static void fpga_irq_handle(unsigned int irq, struct irq_desc *desc)
68+
static void fpga_irq_handle(unsigned int __irq, struct irq_desc *desc)
6969
{
7070
struct fpga_irq_data *f = irq_desc_get_handler_data(desc);
71+
unsigned int irq = irq_desc_get_irq(desc);
7172
u32 status = readl(f->base + IRQ_STATUS);
7273

7374
if (status == 0) {

0 commit comments

Comments
 (0)