]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sh: Switch to irq_domain_create_*()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Mar 2025 09:29:26 +0000 (10:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 May 2025 19:06:11 +0000 (21:06 +0200)
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
arch/sh/boards/mach-se/7343/irq.c
arch/sh/boards/mach-se/7722/irq.c
arch/sh/boards/mach-x3proto/gpio.c
drivers/sh/intc/irqdomain.c

index f9f3b14f70d574df05f8e351d97e82c0135ffc75..8241bdedcc82d01f7893daf22c4279f2d2471ad0 100644 (file)
@@ -47,8 +47,9 @@ static void __init se7343_domain_init(void)
 {
        int i;
 
-       se7343_irq_domain = irq_domain_add_linear(NULL, SE7343_FPGA_IRQ_NR,
-                                                 &irq_domain_simple_ops, NULL);
+       se7343_irq_domain = irq_domain_create_linear(NULL, SE7343_FPGA_IRQ_NR,
+                                                    &irq_domain_simple_ops,
+                                                    NULL);
        if (unlikely(!se7343_irq_domain)) {
                printk("Failed to get IRQ domain\n");
                return;
index efa96edd47dc5fe772576bd1ff50bdff4eb8fdee..9a460a81907f1e25ca9ac490271c1803b2f723d3 100644 (file)
@@ -46,7 +46,7 @@ static void __init se7722_domain_init(void)
 {
        int i;
 
-       se7722_irq_domain = irq_domain_add_linear(NULL, SE7722_FPGA_IRQ_NR,
+       se7722_irq_domain = irq_domain_create_linear(NULL, SE7722_FPGA_IRQ_NR,
                                                  &irq_domain_simple_ops, NULL);
        if (unlikely(!se7722_irq_domain)) {
                printk("Failed to get IRQ domain\n");
index f82d3a6a844a5888c5602666d5f6ad24c83e5a46..c13d51b29702d09ac772265a5ef54b45013b705d 100644 (file)
@@ -108,7 +108,7 @@ int __init x3proto_gpio_setup(void)
        if (unlikely(ret))
                goto err_gpio;
 
-       x3proto_irq_domain = irq_domain_add_linear(NULL, NR_BASEBOARD_GPIOS,
+       x3proto_irq_domain = irq_domain_create_linear(NULL, NR_BASEBOARD_GPIOS,
                                                   &x3proto_gpio_irq_ops, NULL);
        if (unlikely(!x3proto_irq_domain))
                goto err_irq;
index 3968f1c3c5c308b0008f9193dd2f976bdc799123..ed7a570ffdf25b005414e53d28d3e18295be8b83 100644 (file)
@@ -59,10 +59,9 @@ void __init intc_irq_domain_init(struct intc_desc_int *d,
         * tree penalty for linear cases with non-zero hwirq bases.
         */
        if (irq_base == 0 && irq_end == (irq_base + hw->nr_vectors - 1))
-               d->domain = irq_domain_add_linear(NULL, hw->nr_vectors,
-                                                 &intc_evt_ops, NULL);
+               d->domain = irq_domain_create_linear(NULL, hw->nr_vectors, &intc_evt_ops, NULL);
        else
-               d->domain = irq_domain_add_tree(NULL, &intc_evt_ops, NULL);
+               d->domain = irq_domain_create_tree(NULL, &intc_evt_ops, NULL);
 
        BUG_ON(!d->domain);
 }