gpio/ep93xx: Use irq_set_handler_locked()
authorThomas Gleixner <[email protected]>
Tue, 23 Jun 2015 13:52:38 +0000 (15:52 +0200)
committerThomas Gleixner <[email protected]>
Tue, 14 Jul 2015 10:12:19 +0000 (12:12 +0200)
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 <[email protected]>
Cc: Jiang Liu <[email protected]>
Cc: Julia Lawall <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Alexandre Courbot <[email protected]>
Cc: [email protected]
drivers/gpio/gpio-ep93xx.c

index 45684f36ddb15d54f57db64cc64f38f0ec34acde..8664cf041b1f61a6aa1cc1053cf9c4321e049ac5 100644 (file)
@@ -208,7 +208,7 @@ static int ep93xx_gpio_irq_type(struct irq_data *d, unsigned int type)
                return -EINVAL;
        }
 
-       __irq_set_handler_locked(d->irq, handler);
+       irq_set_handler_locked(d, handler);
 
        gpio_int_enabled[port] |= port_mask;