Commit 206287c2 authored by Thomas Gleixner's avatar Thomas Gleixner

ARM/orion: Consolidate chained IRQ handler install/remove

Chained irq handlers usually set up handler data as well. We now have
a function to set both under irq_desc->lock. Replace the two calls
with one.

Search and conversion was done with coccinelle.
Reported-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
parent e4925198
...@@ -582,8 +582,9 @@ void __init orion_gpio_init(struct device_node *np, ...@@ -582,8 +582,9 @@ void __init orion_gpio_init(struct device_node *np,
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
if (irqs[i]) { if (irqs[i]) {
irq_set_handler_data(irqs[i], ochip); irq_set_chained_handler_and_data(irqs[i],
irq_set_chained_handler(irqs[i], gpio_irq_handler); gpio_irq_handler,
ochip);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment