mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
soc: fsl: qe: Consolidate chained IRQ handler install/remove
Chained irq handlers usually set up handler data as well. irq_set_chained_handler_and_data() can set both under irq_desc->lock. Replace the two calls with one. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Link: https://lore.kernel.org/r/20250515083919.3811473-1-nichen@iscas.ac.cn Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
This commit is contained in:
parent
61ddf5faa7
commit
695d702f42
|
|
@ -455,13 +455,11 @@ static int qe_ic_init(struct platform_device *pdev)
|
|||
|
||||
qe_ic_write(qe_ic->regs, QEIC_CICR, 0);
|
||||
|
||||
irq_set_handler_data(qe_ic->virq_low, qe_ic);
|
||||
irq_set_chained_handler(qe_ic->virq_low, low_handler);
|
||||
irq_set_chained_handler_and_data(qe_ic->virq_low, low_handler, qe_ic);
|
||||
|
||||
if (high_handler) {
|
||||
irq_set_handler_data(qe_ic->virq_high, qe_ic);
|
||||
irq_set_chained_handler(qe_ic->virq_high, high_handler);
|
||||
}
|
||||
if (high_handler)
|
||||
irq_set_chained_handler_and_data(qe_ic->virq_high,
|
||||
high_handler, qe_ic);
|
||||
return 0;
|
||||
}
|
||||
static const struct of_device_id qe_ic_ids[] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user