[patch 14/20] powerpc/mpc52xx: Use irq_set_handler_locked()
Thomas Gleixner
tglx at linutronix.de
Tue Jul 14 06:50:21 AEST 2015
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 at linutronix.de>
Cc: Jiang Liu <jiang.liu at linux.intel.com>
Cc: Julia Lawall <julia.lawall at lip6.fr>
Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: Michael Ellerman <mpe at ellerman.id.au>
Cc: linuxppc-dev at lists.ozlabs.org
---
arch/powerpc/platforms/52xx/mpc52xx_pic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: tip/arch/powerpc/platforms/52xx/mpc52xx_pic.c
===================================================================
--- tip.orig/arch/powerpc/platforms/52xx/mpc52xx_pic.c
+++ tip/arch/powerpc/platforms/52xx/mpc52xx_pic.c
@@ -196,7 +196,7 @@ static int mpc52xx_extirq_set_type(struc
ctrl_reg |= (type << (22 - (l2irq * 2)));
out_be32(&intr->ctrl, ctrl_reg);
- __irq_set_handler_locked(d->irq, handler);
+ irq_set_handler_locked(d, handler);
return 0;
}
More information about the Linuxppc-dev
mailing list