Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/cpm2: Use irq_set_handler_locked()

Use irq_set_handler_locked() as it avoids a redundant lookup of the
irq descriptor.

Search and replacement was done with coccinelle:

@@
struct irq_data *d;
expression E1;
@@

-__irq_set_handler_locked(d->irq, E1);
+irq_set_handler_locked(d, E1);

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: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org

+2 -2
+2 -2
arch/powerpc/sysdev/cpm2_pic.c
··· 155 155 156 156 irqd_set_trigger_type(d, flow_type); 157 157 if (flow_type & IRQ_TYPE_LEVEL_LOW) 158 - __irq_set_handler_locked(d->irq, handle_level_irq); 158 + irq_set_handler_locked(d, handle_level_irq); 159 159 else 160 - __irq_set_handler_locked(d->irq, handle_edge_irq); 160 + irq_set_handler_locked(d, handle_edge_irq); 161 161 162 162 /* internal IRQ senses are LEVEL_LOW 163 163 * EXT IRQ and Port C IRQ senses are programmable