Hand in irq_data and avoid the redundant lookup of irq_desc.

Originally-from: Jiang Liu <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
---
 drivers/gpio/gpio-zynq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c
index 184c4b1b2558..8162f7952073 100644
--- a/drivers/gpio/gpio-zynq.c
+++ b/drivers/gpio/gpio-zynq.c
@@ -423,10 +423,10 @@ static int zynq_gpio_set_irq_type(struct irq_data 
*irq_data, unsigned int type)
                       gpio->base_addr + ZYNQ_GPIO_INTANY_OFFSET(bank_num));
 
        if (type & IRQ_TYPE_LEVEL_MASK) {
-               __irq_set_chip_handler_name_locked(irq_data->irq,
+               irq_set_chip_handler_name_locked(irq_data,
                        &zynq_gpio_level_irqchip, handle_fasteoi_irq, NULL);
        } else {
-               __irq_set_chip_handler_name_locked(irq_data->irq,
+               irq_set_chip_handler_name_locked(irq_data,
                        &zynq_gpio_edge_irqchip, handle_level_irq, NULL);
        }
 
-- 
2.1.4



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to