Skip to content

Commit f70229e

Browse files
committed
unicore32/irq: Prepare puv3_gpio_handler 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: Guan Xuetao <[email protected]>
1 parent f5dbdd4 commit f70229e

File tree

1 file changed

+2
-3
lines changed
  • arch/unicore32/kernel

1 file changed

+2
-3
lines changed

arch/unicore32/kernel/irq.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ static struct irq_chip puv3_low_gpio_chip = {
112112
* irq_controller_lock held, and IRQs disabled. Decode the IRQ
113113
* and call the handler.
114114
*/
115-
static void
116-
puv3_gpio_handler(unsigned int irq, struct irq_desc *desc)
115+
static void puv3_gpio_handler(unsigned int __irq, struct irq_desc *desc)
117116
{
118-
unsigned int mask;
117+
unsigned int mask, irq;
119118

120119
mask = readl(GPIO_GEDR);
121120
do {

0 commit comments

Comments
 (0)