Skip to content

Commit e616e9a

Browse files
committed
irqchip/tb10x: Prepare tb10x_irq_cascade 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 4df18a6 commit e616e9a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/irqchip/irq-tb10x.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type)
9797
return IRQ_SET_MASK_OK;
9898
}
9999

100-
static void tb10x_irq_cascade(unsigned int irq, struct irq_desc *desc)
100+
static void tb10x_irq_cascade(unsigned int __irq, struct irq_desc *desc)
101101
{
102102
struct irq_domain *domain = irq_desc_get_handler_data(desc);
103+
unsigned int irq = irq_desc_get_irq(desc);
103104

104105
generic_handle_irq(irq_find_mapping(domain, irq));
105106
}

0 commit comments

Comments
 (0)