]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc: Switch to of_fwnode_handle()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Mar 2025 09:29:01 +0000 (10:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 May 2025 19:06:08 +0000 (21:06 +0200)
of_node_to_fwnode() is irqdomain's reimplementation of the "officially"
defined of_fwnode_handle(). The former is in the process of being
removed, so use the latter instead.

[ 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-9-jirislaby@kernel.org
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/pseries/msi.c

index ae4b549b5ca0aa2661fd6cc0667226c48ce27455..d8ccf2c9b98ad02d99d633764d1b2902a684ab26 100644 (file)
@@ -1897,7 +1897,7 @@ static int __init pnv_msi_allocate_domains(struct pci_controller *hose, unsigned
                return -ENOMEM;
        }
 
-       hose->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(hose->dn),
+       hose->msi_domain = pci_msi_create_irq_domain(of_fwnode_handle(hose->dn),
                                                     &pnv_msi_domain_info,
                                                     hose->dev_domain);
        if (!hose->msi_domain) {
index f9d80111c322f25c58b2e8a48bc3487ff5282db6..5b191f70c0883cadaa8722bc6eea1e6ce60b1970 100644 (file)
@@ -628,7 +628,7 @@ static int __pseries_msi_allocate_domains(struct pci_controller *phb,
                return -ENOMEM;
        }
 
-       phb->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(phb->dn),
+       phb->msi_domain = pci_msi_create_irq_domain(of_fwnode_handle(phb->dn),
                                                    &pseries_msi_domain_info,
                                                    phb->dev_domain);
        if (!phb->msi_domain) {