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

irqchip/irq-vt8500: 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: Split out from combo patch to avoid merge conflicts ]

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-22-jirislaby@kernel.org

authored by

Jiri Slaby (SUSE) and committed by
Thomas Gleixner
15568ffd 85cf5c63

+2 -4
+2 -4
drivers/irqchip/irq-vt8500.c
··· 214 214 goto err_free; 215 215 } 216 216 217 - intc->domain = irq_domain_add_linear(node, 218 - 64, 219 - &vt8500_irq_domain_ops, 220 - intc); 217 + intc->domain = irq_domain_create_linear(of_fwnode_handle(node), 64, 218 + &vt8500_irq_domain_ops, intc); 221 219 if (!intc->domain) { 222 220 pr_err("%s: Unable to add irq domain!\n", __func__); 223 221 ret = -ENOMEM;