gpio: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
[firefly-linux-kernel-4.4.55.git] / drivers / gpio / gpio-omap.c
index 1a7c2ded9d6fb24226e25a600a58b381af9a44ac..04ea23ba37ccdf192d7369e9641809a43bbd452c 100644 (file)
@@ -714,7 +714,7 @@ static void omap_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
        struct gpio_bank *bank;
        int unmasked = 0;
        struct irq_chip *irqchip = irq_desc_get_chip(desc);
-       struct gpio_chip *chip = irq_get_handler_data(irq);
+       struct gpio_chip *chip = irq_desc_get_handler_data(desc);
 
        chained_irq_enter(irqchip, desc);