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.

misc: hi6421-spmi-pmic: Switch to irq_domain_create_simple()

irq_domain_add_simple() is going away as being obsolete now. Switch to
the preferred irq_domain_create_simple(). 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-27-jirislaby@kernel.org



authored by

Jiri Slaby (SUSE) and committed by
Thomas Gleixner
d8566886 0810f121

+3 -2
+3 -2
drivers/misc/hi6421v600-irq.c
··· 254 254 if (!priv->irqs) 255 255 return -ENOMEM; 256 256 257 - priv->domain = irq_domain_add_simple(np, PMIC_IRQ_LIST_MAX, 0, 258 - &hi6421v600_domain_ops, priv); 257 + priv->domain = irq_domain_create_simple(of_fwnode_handle(np), 258 + PMIC_IRQ_LIST_MAX, 0, 259 + &hi6421v600_domain_ops, priv); 259 260 if (!priv->domain) { 260 261 dev_err(dev, "Failed to create IRQ domain\n"); 261 262 return -ENODEV;