int dw_pcie_allocate_domains(struct dw_pcie_rp *pp)
 {
        struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
-       struct fwnode_handle *fwnode = of_node_to_fwnode(pci->dev->of_node);
+       struct fwnode_handle *fwnode = of_fwnode_handle(pci->dev->of_node);
 
        pp->irq_domain = irq_domain_create_linear(fwnode, pp->num_vectors,
                                               &dw_pcie_msi_domain_ops, pp);
 
 static int mobiveil_allocate_msi_domains(struct mobiveil_pcie *pcie)
 {
        struct device *dev = &pcie->pdev->dev;
-       struct fwnode_handle *fwnode = of_node_to_fwnode(dev->of_node);
+       struct fwnode_handle *fwnode = of_fwnode_handle(dev->of_node);
        struct mobiveil_msi *msi = &pcie->rp.msi;
 
        mutex_init(&msi->lock);
 
        if (!msi->inner_domain)
                return -ENOMEM;
 
-       msi->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(msi->node),
+       msi->msi_domain = pci_msi_create_irq_domain(of_fwnode_handle(msi->node),
                                                    &xgene_msi_domain_info,
                                                    msi->inner_domain);
 
 
 
 static int altera_allocate_domains(struct altera_msi *msi)
 {
-       struct fwnode_handle *fwnode = of_node_to_fwnode(msi->pdev->dev.of_node);
+       struct fwnode_handle *fwnode = of_fwnode_handle(msi->pdev->dev.of_node);
 
        msi->inner_domain = irq_domain_add_linear(NULL, msi->num_of_vectors,
                                             &msi_domain_ops, msi);
 
 
 static int brcm_allocate_domains(struct brcm_msi *msi)
 {
-       struct fwnode_handle *fwnode = of_node_to_fwnode(msi->np);
+       struct fwnode_handle *fwnode = of_fwnode_handle(msi->np);
        struct device *dev = msi->dev;
 
        msi->inner_domain = irq_domain_add_linear(NULL, msi->nr, &msi_domain_ops, msi);
 
        if (!msi->inner_domain)
                return -ENOMEM;
 
-       msi->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(node),
+       msi->msi_domain = pci_msi_create_irq_domain(of_fwnode_handle(node),
                                                    &iproc_msi_domain_info,
                                                    msi->inner_domain);
        if (!msi->msi_domain) {
 
 
 static int mtk_pcie_allocate_msi_domains(struct mtk_pcie_port *port)
 {
-       struct fwnode_handle *fwnode = of_node_to_fwnode(port->pcie->dev->of_node);
+       struct fwnode_handle *fwnode = of_fwnode_handle(port->pcie->dev->of_node);
 
        mutex_init(&port->lock);
 
 
        struct device *dev = port->dev;
        struct xilinx_msi *msi = &port->msi;
        int size = BITS_TO_LONGS(XILINX_NUM_MSI_IRQS) * sizeof(long);
-       struct fwnode_handle *fwnode = of_node_to_fwnode(port->dev->of_node);
+       struct fwnode_handle *fwnode = of_fwnode_handle(port->dev->of_node);
 
        msi->dev_domain = irq_domain_add_linear(NULL, XILINX_NUM_MSI_IRQS,
                                                &dev_msi_domain_ops, port);
 
 {
 #ifdef CONFIG_PCI_MSI
        struct device *dev = pcie->dev;
-       struct fwnode_handle *fwnode = of_node_to_fwnode(dev->of_node);
+       struct fwnode_handle *fwnode = of_fwnode_handle(dev->of_node);
        struct nwl_msi *msi = &pcie->msi;
 
        msi->dev_domain = irq_domain_add_linear(NULL, INT_PCI_MSI_NR,
 
 static int plda_allocate_msi_domains(struct plda_pcie_rp *port)
 {
        struct device *dev = port->dev;
-       struct fwnode_handle *fwnode = of_node_to_fwnode(dev->of_node);
+       struct fwnode_handle *fwnode = of_fwnode_handle(dev->of_node);
        struct plda_msi *msi = &port->msi;
 
        mutex_init(&port->msi.lock);