Commit fdc34812 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Bjorn Helgaas
Browse files

irqdomain: pci: Switch to of_fwnode_handle()



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.

Signed-off-by: default avatarJiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250319092951.37667-8-jirislaby@kernel.org
parent 0af2f6be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ static const struct irq_domain_ops dw_pcie_msi_domain_ops = {
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);
+1 −1
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ static const struct irq_domain_ops msi_domain_ops = {
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);
+1 −1
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ static int xgene_allocate_domains(struct xgene_msi *msi)
	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);

+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ static const struct irq_domain_ops msi_domain_ops = {

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);
+1 −1
Original line number Diff line number Diff line
@@ -581,7 +581,7 @@ static const struct irq_domain_ops msi_domain_ops = {

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);
Loading