Commit 425e20fd08a53ad06c562960d594505813c7910c

Authored by Thomas Gleixner
Committed by Vinod Koul
1 parent 67a6eedc4d

dmaengine: ipu: Prepare irq handlers 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>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

drivers/dma/ipu/ipu_irq.c
... ... @@ -266,7 +266,7 @@
266 266 }
267 267  
268 268 /* Chained IRQ handler for IPU error interrupt */
269   -static void ipu_irq_err(unsigned int irq, struct irq_desc *desc)
  269 +static void ipu_irq_err(unsigned int __irq, struct irq_desc *desc)
270 270 {
271 271 struct ipu *ipu = irq_desc_get_handler_data(desc);
272 272 u32 status;
... ... @@ -286,6 +286,7 @@
286 286 raw_spin_unlock(&bank_lock);
287 287 while ((line = ffs(status))) {
288 288 struct ipu_irq_map *map;
  289 + unsigned int irq;
289 290  
290 291 line--;
291 292 status &= ~(1UL << line);
... ... @@ -307,7 +308,7 @@
307 308 }
308 309  
309 310 /* Chained IRQ handler for IPU function interrupt */
310   -static void ipu_irq_fn(unsigned int irq, struct irq_desc *desc)
  311 +static void ipu_irq_fn(unsigned int __irq, struct irq_desc *desc)
311 312 {
312 313 struct ipu *ipu = irq_desc_get_handler_data(desc);
313 314 u32 status;
... ... @@ -323,6 +324,7 @@
323 324 raw_spin_unlock(&bank_lock);
324 325 while ((line = ffs(status))) {
325 326 struct ipu_irq_map *map;
  327 + unsigned int irq;
326 328  
327 329 line--;
328 330 status &= ~(1UL << line);