mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
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: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Thomas 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
This commit is contained in:
parent
e49251988b
commit
206287c2c8
1 changed files with 3 additions and 2 deletions
|
@ -582,8 +582,9 @@ void __init orion_gpio_init(struct device_node *np,
|
|||
|
||||
for (i = 0; i < 4; i++) {
|
||||
if (irqs[i]) {
|
||||
irq_set_handler_data(irqs[i], ochip);
|
||||
irq_set_chained_handler(irqs[i], gpio_irq_handler);
|
||||
irq_set_chained_handler_and_data(irqs[i],
|
||||
gpio_irq_handler,
|
||||
ochip);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue