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

sh: Switch to irq_domain_create_*()

irq_domain_add_*() interfaces are going away as being obsolete now.
Switch to the preferred irq_domain_create_*() ones. Those differ in the
node parameter: They take more generic struct fwnode_handle instead of
struct device_node. Therefore, of_fwnode_handle() is added around the
original 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-34-jirislaby@kernel.org



authored by

Jiri Slaby (SUSE) and committed by
Thomas Gleixner
b625f934 bf9935e4

+7 -7
+3 -2
arch/sh/boards/mach-se/7343/irq.c
··· 47 47 { 48 48 int i; 49 49 50 - se7343_irq_domain = irq_domain_add_linear(NULL, SE7343_FPGA_IRQ_NR, 51 - &irq_domain_simple_ops, NULL); 50 + se7343_irq_domain = irq_domain_create_linear(NULL, SE7343_FPGA_IRQ_NR, 51 + &irq_domain_simple_ops, 52 + NULL); 52 53 if (unlikely(!se7343_irq_domain)) { 53 54 printk("Failed to get IRQ domain\n"); 54 55 return;
+1 -1
arch/sh/boards/mach-se/7722/irq.c
··· 46 46 { 47 47 int i; 48 48 49 - se7722_irq_domain = irq_domain_add_linear(NULL, SE7722_FPGA_IRQ_NR, 49 + se7722_irq_domain = irq_domain_create_linear(NULL, SE7722_FPGA_IRQ_NR, 50 50 &irq_domain_simple_ops, NULL); 51 51 if (unlikely(!se7722_irq_domain)) { 52 52 printk("Failed to get IRQ domain\n");
+1 -1
arch/sh/boards/mach-x3proto/gpio.c
··· 108 108 if (unlikely(ret)) 109 109 goto err_gpio; 110 110 111 - x3proto_irq_domain = irq_domain_add_linear(NULL, NR_BASEBOARD_GPIOS, 111 + x3proto_irq_domain = irq_domain_create_linear(NULL, NR_BASEBOARD_GPIOS, 112 112 &x3proto_gpio_irq_ops, NULL); 113 113 if (unlikely(!x3proto_irq_domain)) 114 114 goto err_irq;
+2 -3
drivers/sh/intc/irqdomain.c
··· 59 59 * tree penalty for linear cases with non-zero hwirq bases. 60 60 */ 61 61 if (irq_base == 0 && irq_end == (irq_base + hw->nr_vectors - 1)) 62 - d->domain = irq_domain_add_linear(NULL, hw->nr_vectors, 63 - &intc_evt_ops, NULL); 62 + d->domain = irq_domain_create_linear(NULL, hw->nr_vectors, &intc_evt_ops, NULL); 64 63 else 65 - d->domain = irq_domain_add_tree(NULL, &intc_evt_ops, NULL); 64 + d->domain = irq_domain_create_tree(NULL, &intc_evt_ops, NULL); 66 65 67 66 BUG_ON(!d->domain); 68 67 }