diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-07-16 22:41:39 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-16 22:53:23 +0200 |
commit | 71093eb2cf720a1eded53c0711c4fa691185e82c (patch) | |
tree | 80eb7174f3ee1707534df89792597dd403e880ce /drivers/irqchip/irq-versatile-fpga.c | |
parent | e616e9af87206dfd00753c1546388210fe5d0002 (diff) | |
download | linux-stable-71093eb2cf720a1eded53c0711c4fa691185e82c.tar.gz linux-stable-71093eb2cf720a1eded53c0711c4fa691185e82c.tar.bz2 linux-stable-71093eb2cf720a1eded53c0711c4fa691185e82c.zip |
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>
Diffstat (limited to 'drivers/irqchip/irq-versatile-fpga.c')
-rw-r--r-- | drivers/irqchip/irq-versatile-fpga.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-versatile-fpga.c b/drivers/irqchip/irq-versatile-fpga.c index 70088bb3fb53..16123f688768 100644 --- a/drivers/irqchip/irq-versatile-fpga.c +++ b/drivers/irqchip/irq-versatile-fpga.c @@ -65,9 +65,10 @@ static void fpga_irq_unmask(struct irq_data *d) 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); + unsigned int irq = irq_desc_get_irq(desc); u32 status = readl(f->base + IRQ_STATUS); if (status == 0) { |