diff mbox

[15/20] powerpc/cpm2: Use irq_set_handler_locked()

Message ID 20150713135740.257774769@linutronix.de (mailing list archive)
State Not Applicable
Headers show

Commit Message

Thomas Gleixner July 13, 2015, 8:50 p.m. UTC
Use irq_set_handler_locked() as it avoids a redundant lookup of the
irq descriptor.

Search and replacement was done with coccinelle.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/sysdev/cpm2_pic.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

Index: tip/arch/powerpc/sysdev/cpm2_pic.c
===================================================================
--- tip.orig/arch/powerpc/sysdev/cpm2_pic.c
+++ tip/arch/powerpc/sysdev/cpm2_pic.c
@@ -155,9 +155,9 @@  static int cpm2_set_irq_type(struct irq_
 
 	irqd_set_trigger_type(d, flow_type);
 	if (flow_type & IRQ_TYPE_LEVEL_LOW)
-		__irq_set_handler_locked(d->irq, handle_level_irq);
+		irq_set_handler_locked(d, handle_level_irq);
 	else
-		__irq_set_handler_locked(d->irq, handle_edge_irq);
+		irq_set_handler_locked(d, handle_edge_irq);
 
 	/* internal IRQ senses are LEVEL_LOW
 	 * EXT IRQ and Port C IRQ senses are programmable