]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
irqchip/irq-pruss-intc: Simplify chained interrupt handler setup
authorChen Ni <nichen@iscas.ac.cn>
Thu, 15 May 2025 08:34:50 +0000 (16:34 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 May 2025 15:06:48 +0000 (17:06 +0200)
The chained interrupt handler setup installs the handler and handler data
with two function call.s

irq_set_chained_handler_and_data() can set both in one operation. Replace
the two calls with one.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250515083450.3811411-1-nichen@iscas.ac.cn
drivers/irqchip/irq-pruss-intc.c

index bee01980b4630c2c4ac03be4c65f91fe084fd4af..af7684758049f6b462b4d1c6fc7140949db478c6 100644 (file)
@@ -581,8 +581,7 @@ static int pruss_intc_probe(struct platform_device *pdev)
                host_data->intc = intc;
                host_data->host_irq = i;
 
-               irq_set_handler_data(irq, host_data);
-               irq_set_chained_handler(irq, pruss_intc_irq_handler);
+               irq_set_chained_handler_and_data(irq, pruss_intc_irq_handler, host_data);
        }
 
        return 0;