projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ca86b2
)
gpio: vf610: Use irq_set_handler_locked
author
Thomas Gleixner
<
[email protected]
>
Wed, 16 Sep 2015 10:51:00 +0000
(12:51 +0200)
committer
Thomas Gleixner
<
[email protected]
>
Wed, 16 Sep 2015 13:43:11 +0000
(15:43 +0200)
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 <
[email protected]
>
Cc: Julia Lawall <
[email protected]
>
Cc: Linus Walleij <
[email protected]
>
Cc:
[email protected]
drivers/gpio/gpio-vf610.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-vf610.c
b/drivers/gpio/gpio-vf610.c
index 3d5714d4f405dd50731da6a11d8f24398d7c36d8..7a6640b519117161eaa4ae58ba8811074644dfae 100644
(file)
--- a/
drivers/gpio/gpio-vf610.c
+++ b/
drivers/gpio/gpio-vf610.c
@@
-176,9
+176,9
@@
static int vf610_gpio_irq_set_type(struct irq_data *d, u32 type)
port->irqc[d->hwirq] = irqc;
if (type & IRQ_TYPE_LEVEL_MASK)
-
__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);
return 0;
}