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 <t...@linutronix.de> Cc: Jiang Liu <jiang....@linux.intel.com> Cc: Julia Lawall <julia.law...@lip6.fr> Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> Cc: Michael Ellerman <m...@ellerman.id.au> Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/sysdev/mpc8xx_pic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: tip/arch/powerpc/sysdev/mpc8xx_pic.c =================================================================== --- tip.orig/arch/powerpc/sysdev/mpc8xx_pic.c +++ tip/arch/powerpc/sysdev/mpc8xx_pic.c @@ -55,7 +55,7 @@ static int mpc8xx_set_irq_type(struct ir unsigned int siel = in_be32(&siu_reg->sc_siel); siel |= mpc8xx_irqd_to_bit(d); out_be32(&siu_reg->sc_siel, siel); - __irq_set_handler_locked(d->irq, handle_edge_irq); + irq_set_handler_locked(d, handle_edge_irq); } return 0; } _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev