Skip to content

Commit d856688

Browse files
Jiri Slaby (SUSE)KAGA-KOKO
authored andcommitted
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) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 0810f12 commit d856688

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/misc/hi6421v600-irq.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@ static int hi6421v600_irq_probe(struct platform_device *pdev)
254254
if (!priv->irqs)
255255
return -ENOMEM;
256256

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);
259260
if (!priv->domain) {
260261
dev_err(dev, "Failed to create IRQ domain\n");
261262
return -ENODEV;

0 commit comments

Comments
 (0)