diff options
| author | Marek BehĂșn <[email protected]> | 2022-01-10 01:50:03 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2022-02-08 10:43:01 +0000 |
| commit | 222af78532fa299cd9b1008e49c347b7f5a45c17 (patch) | |
| tree | dc2e36e05639fef02e715df1af7689c8633a1459 /drivers/pci/controller/pci-aardvark.c | |
| parent | PCI: aardvark: Make msi_domain_info structure a static driver structure (diff) | |
| download | kernel-222af78532fa299cd9b1008e49c347b7f5a45c17.tar.gz kernel-222af78532fa299cd9b1008e49c347b7f5a45c17.zip | |
PCI: aardvark: Use dev_fwnode() instead of of_node_to_fwnode(dev->of_node)
Use simple
dev_fwnode(dev)
instead of
struct device_node *node = dev->of_node;
of_node_to_fwnode(node)
especially since the node variable is not used elsewhere in the function.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marek BehĂșn <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-aardvark.c')
| -rw-r--r-- | drivers/pci/controller/pci-aardvark.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index 060fa451bb40..bf2a99a5a576 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -1292,7 +1292,6 @@ static struct msi_domain_info advk_msi_domain_info = { static int advk_pcie_init_msi_irq_domain(struct advk_pcie *pcie) { struct device *dev = &pcie->pdev->dev; - struct device_node *node = dev->of_node; phys_addr_t msi_msg_phys; mutex_init(&pcie->msi_used_lock); @@ -1311,7 +1310,7 @@ static int advk_pcie_init_msi_irq_domain(struct advk_pcie *pcie) return -ENOMEM; pcie->msi_domain = - pci_msi_create_irq_domain(of_node_to_fwnode(node), + pci_msi_create_irq_domain(dev_fwnode(dev), &advk_msi_domain_info, pcie->msi_inner_domain); if (!pcie->msi_domain) { |
