]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
irqchip/tango: Set irq handler and data in one go
authorMartin Kaiser <martin@kaiser.cx>
Fri, 17 Aug 2018 12:10:27 +0000 (14:10 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 20 Aug 2018 08:54:44 +0000 (09:54 +0100)
Replace the two separate calls for setting the irq handler and data with
a single irq_set_chained_handler_and_data() call.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-tango.c

index 0c085303a58302cc982f69e52b0a5ea8e5c60c25..580e2d72b9ba42e9e5887296a73d0d5279a496a0 100644 (file)
@@ -205,8 +205,7 @@ static int __init tangox_irq_init(void __iomem *base, struct resource *baseres,
 
        tangox_irq_domain_init(dom);
 
-       irq_set_chained_handler(irq, tangox_irq_handler);
-       irq_set_handler_data(irq, dom);
+       irq_set_chained_handler_and_data(irq, tangox_irq_handler, dom);
 
        return 0;
 }