]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
irqdomain: platform/x86: Switch to irq_domain_create_linear()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Mar 2025 09:29:24 +0000 (10:29 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 21 Mar 2025 15:47:56 +0000 (17:47 +0200)
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. The first parameter is NULL here so nothing else needs to
be done.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250319092951.37667-32-jirislaby@kernel.org
[ij: Removed unnecessary details from the commit message.]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-tf103c-dock.c

index ca4670d0dc678c9f999e71c9ceb8cc23f5197357..f09a3fc6524a3dcd311ea2bcd72564957f5a6d5f 100644 (file)
@@ -856,7 +856,7 @@ static int tf103c_dock_probe(struct i2c_client *client)
        /* 5. Setup irqchip for touchpad IRQ pass-through */
        dock->tp_irqchip.name = KBUILD_MODNAME;
 
-       dock->tp_irq_domain = irq_domain_add_linear(NULL, 1, &irq_domain_simple_ops, NULL);
+       dock->tp_irq_domain = irq_domain_create_linear(NULL, 1, &irq_domain_simple_ops, NULL);
        if (!dock->tp_irq_domain)
                return -ENOMEM;