Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71093eb2 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
parent e616e9af
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -65,9 +65,10 @@ static void fpga_irq_unmask(struct irq_data *d)
	writel(mask, f->base + IRQ_ENABLE_SET);
	writel(mask, f->base + IRQ_ENABLE_SET);
}
}


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


	if (status == 0) {
	if (status == 0) {