]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio/zynq: Use irq_set_chip_handler_name_locked()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 23 Jun 2015 12:37:42 +0000 (14:37 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jul 2015 10:12:19 +0000 (12:12 +0200)
Hand in irq_data and avoid the redundant lookup of irq_desc.

Originally-from: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/gpio/gpio-zynq.c

index 2e87c4b8da26d5336164359a6a6e27f0a32de68c..53b297473724a5a13178ae799f0451a44901abf0 100644 (file)
@@ -441,10 +441,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);
        }