Skip to content

Commit 88bd646

Browse files
committed
C6X/megamode-pic: Prepare megamod_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 <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Mark Salter <[email protected]> Cc: [email protected]
1 parent 2b50176 commit 88bd646

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/c6x/platforms/megamod-pic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ static struct irq_chip megamod_chip = {
9393
.irq_unmask = unmask_megamod,
9494
};
9595

96-
static void megamod_irq_cascade(unsigned int irq, struct irq_desc *desc)
96+
static void megamod_irq_cascade(unsigned int __irq, struct irq_desc *desc)
9797
{
9898
struct megamod_cascade_data *cascade;
9999
struct megamod_pic *pic;
100+
unsigned int irq;
100101
u32 events;
101102
int n, idx;
102103

0 commit comments

Comments
 (0)