1 From 59029739d42b439628e2f64f3d8f2db9be97deff Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
3 Date: Mon, 10 Jan 2022 00:15:17 +0100
4 Subject: [PATCH] PCI: aardvark: Use dev_fwnode() instead of
5 of_node_to_fwnode(dev->of_node)
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
13 struct device_node *node = dev->of_node;
14 of_node_to_fwnode(node)
15 especially since the node variable is not used elsewhere in the function.
17 Signed-off-by: Marek BehĂșn <kabel@kernel.org>
19 drivers/pci/controller/pci-aardvark.c | 3 +--
20 1 file changed, 1 insertion(+), 2 deletions(-)
22 diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c
23 index b5e5c922ad0d..e641ad566488 100644
24 --- a/drivers/pci/controller/pci-aardvark.c
25 +++ b/drivers/pci/controller/pci-aardvark.c
26 @@ -1299,7 +1299,6 @@ static struct msi_domain_info advk_msi_domain_info = {
27 static int advk_pcie_init_msi_irq_domain(struct advk_pcie *pcie)
29 struct device *dev = &pcie->pdev->dev;
30 - struct device_node *node = dev->of_node;
31 phys_addr_t msi_msg_phys;
33 mutex_init(&pcie->msi_used_lock);
34 @@ -1318,7 +1317,7 @@ static int advk_pcie_init_msi_irq_domain(struct advk_pcie *pcie)
38 - pci_msi_create_irq_domain(of_node_to_fwnode(node),
39 + pci_msi_create_irq_domain(dev_fwnode(dev),
40 &advk_msi_domain_info,
41 pcie->msi_inner_domain);
42 if (!pcie->msi_domain) {