irqchip/mips-gic: Use irq_set_chip_handler_name_locked
authorThomas Gleixner <tglx@linutronix.de>
Tue, 23 Jun 2015 12:41:25 +0000 (14:41 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 12 Jul 2015 15:31:56 +0000 (17:31 +0200)
Use irq_set_handler_name_locked() as it avoids a redundant lookup of
the irq descriptor.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-mips-gic.c

index e6c2df99662af56c5138d7ce9ed7c56e285f6490..e670f651166d678c8cef63bd49538c00f786dd07 100644 (file)
@@ -367,15 +367,12 @@ static int gic_set_type(struct irq_data *d, unsigned int type)
                break;
        }
 
-       if (is_edge) {
-               __irq_set_chip_handler_name_locked(d->irq,
-                                                  &gic_edge_irq_controller,
-                                                  handle_edge_irq, NULL);
-       } else {
-               __irq_set_chip_handler_name_locked(d->irq,
-                                                  &gic_level_irq_controller,
-                                                  handle_level_irq, NULL);
-       }
+       if (is_edge)
+               irq_set_chip_handler_name_locked(d, &gic_edge_irq_controller,
+                                                handle_edge_irq, NULL);
+       else
+               irq_set_chip_handler_name_locked(d, &gic_level_irq_controller,
+                                                handle_level_irq, NULL);
        spin_unlock_irqrestore(&gic_lock, flags);
 
        return 0;