Skip to content

Commit df6e23a

Browse files
Jiang LiuKAGA-KOKO
authored andcommitted
avr32/irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we already have a pointer to corresponding irq_desc. Signed-off-by: Jiang Liu <[email protected]> Acked-by: Hans-Christian Egtvedt <[email protected]> Cc: Haavard Skinnemoen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 4f31dd6 commit df6e23a

File tree

1 file changed

+1
-1
lines changed
  • arch/avr32/mach-at32ap

1 file changed

+1
-1
lines changed

arch/avr32/mach-at32ap/pio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static void gpio_irq_handler(unsigned irq, struct irq_desc *desc)
286286
struct pio_device *pio = irq_desc_get_chip_data(desc);
287287
unsigned gpio_irq;
288288

289-
gpio_irq = (unsigned) irq_get_handler_data(irq);
289+
gpio_irq = (unsigned) irq_desc_get_handler_data(desc);
290290
for (;;) {
291291
u32 isr;
292292

0 commit comments

Comments
 (0)