Commit a595fc51 authored by Thomas Gleixner's avatar Thomas Gleixner

irqchip/mips-gic: Use irq_set_chip_handler_name_locked

Use irq_set_handler_name_locked() as it avoids a redundant lookup of
the irq descriptor.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
parent 0a2b6497
...@@ -367,15 +367,12 @@ static int gic_set_type(struct irq_data *d, unsigned int type) ...@@ -367,15 +367,12 @@ static int gic_set_type(struct irq_data *d, unsigned int type)
break; break;
} }
if (is_edge) { if (is_edge)
__irq_set_chip_handler_name_locked(d->irq, irq_set_chip_handler_name_locked(d, &gic_edge_irq_controller,
&gic_edge_irq_controller, handle_edge_irq, NULL);
handle_edge_irq, NULL); else
} else { irq_set_chip_handler_name_locked(d, &gic_level_irq_controller,
__irq_set_chip_handler_name_locked(d->irq, handle_level_irq, NULL);
&gic_level_irq_controller,
handle_level_irq, NULL);
}
spin_unlock_irqrestore(&gic_lock, flags); spin_unlock_irqrestore(&gic_lock, flags);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment