Skip to content

Commit 16d6937

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
irqdomain: spmi: Switch to irq_domain_create_tree()
irq_domain_add_tree() is going away as being obsolete now. Switch to the preferred irq_domain_create_tree(). 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). Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Cc: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 77ca75e commit 16d6937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spmi/spmi-pmic-arb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ static int spmi_pmic_arb_bus_init(struct platform_device *pdev,
17371737

17381738
dev_dbg(&pdev->dev, "adding irq domain for bus %d\n", bus_index);
17391739

1740-
bus->domain = irq_domain_add_tree(node, &pmic_arb_irq_domain_ops, bus);
1740+
bus->domain = irq_domain_create_tree(of_fwnode_handle(node), &pmic_arb_irq_domain_ops, bus);
17411741
if (!bus->domain) {
17421742
dev_err(&pdev->dev, "unable to create irq_domain\n");
17431743
return -ENOMEM;

0 commit comments

Comments
 (0)