Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ARC: Switch to irq_domain_create_linear()

irq_domain_add_linear() is going away as being obsolete now. Switch to
the preferred irq_domain_create_linear(). That differs in the first
parameter: It takes more generic struct fwnode_handle instead of struct
device_node. Therefore, of_fwnode_handle() is added around the
parameter.

Note some of the users can likely use dev->fwnode directly instead of
indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not
guaranteed to be set for all, so this has to be investigated on case to
case basis (by people who can actually test with the HW).

[ tglx: Fix up subject prefix ]

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250319092951.37667-14-jirislaby@kernel.org


authored by

Jiri Slaby (SUSE) and committed by
Thomas Gleixner
80f2405b c7131b12

+6 -4
+1 -1
arch/arc/kernel/intc-arcv2.c
··· 170 170 if (parent) 171 171 panic("DeviceTree incore intc not a root irq controller\n"); 172 172 173 - root_domain = irq_domain_add_linear(intc, nr_cpu_irqs, &arcv2_irq_ops, NULL); 173 + root_domain = irq_domain_create_linear(of_fwnode_handle(intc), nr_cpu_irqs, &arcv2_irq_ops, NULL); 174 174 if (!root_domain) 175 175 panic("root irq domain not avail\n"); 176 176
+3 -2
arch/arc/kernel/intc-compact.c
··· 112 112 if (parent) 113 113 panic("DeviceTree incore intc not a root irq controller\n"); 114 114 115 - root_domain = irq_domain_add_linear(intc, NR_CPU_IRQS, 116 - &arc_intc_domain_ops, NULL); 115 + root_domain = irq_domain_create_linear(of_fwnode_handle(intc), 116 + NR_CPU_IRQS, 117 + &arc_intc_domain_ops, NULL); 117 118 if (!root_domain) 118 119 panic("root irq domain not avail\n"); 119 120
+2 -1
arch/arc/kernel/mcip.c
··· 391 391 392 392 pr_info("MCIP: IDU supports %u common irqs\n", nr_irqs); 393 393 394 - domain = irq_domain_add_linear(intc, nr_irqs, &idu_irq_ops, NULL); 394 + domain = irq_domain_create_linear(of_fwnode_handle(intc), nr_irqs, 395 + &idu_irq_ops, NULL); 395 396 396 397 /* Parent interrupts (core-intc) are already mapped */ 397 398