gpio: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
[cascardo/linux.git] / drivers / gpio / gpio-dwapb.c
index 55fa985..c5be4b9 100644 (file)
@@ -149,7 +149,7 @@ static u32 dwapb_do_irq(struct dwapb_gpio *gpio)
 
 static void dwapb_irq_handler(u32 irq, struct irq_desc *desc)
 {
-       struct dwapb_gpio *gpio = irq_get_handler_data(irq);
+       struct dwapb_gpio *gpio = irq_desc_get_handler_data(desc);
        struct irq_chip *chip = irq_desc_get_chip(desc);
 
        dwapb_do_irq(gpio);