Skip to content

Commit 7903ffa

Browse files
floatiousbjorn-helgaas
authored andcommitted
PCI: artpec6: Fix artpec6_pcie_cpu_addr_fixup() parameter name
The function pointer declaration for the cpu_addr_fixup() callback uses "cpu_addr" as parameter name. Likewise, the argument that is supplied to the function pointer when the function is actually called is "cpu_addr". Rename the artpec6_pcie_cpu_addr_fixup() parameter name to match reality. [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Niklas Cassel <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Jesper Nilsson <[email protected]>
1 parent 1613e60 commit 7903ffa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pci/controller/dwc/pcie-artpec6.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ static void artpec6_pcie_writel(struct artpec6_pcie *artpec6_pcie, u32 offset, u
9494
regmap_write(artpec6_pcie->regmap, offset, val);
9595
}
9696

97-
static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr)
97+
static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 cpu_addr)
9898
{
9999
struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci);
100100
struct dw_pcie_rp *pp = &pci->pp;
101101
struct dw_pcie_ep *ep = &pci->ep;
102102

103103
switch (artpec6_pcie->mode) {
104104
case DW_PCIE_RC_TYPE:
105-
return pci_addr - pp->cfg0_base;
105+
return cpu_addr - pp->cfg0_base;
106106
case DW_PCIE_EP_TYPE:
107-
return pci_addr - ep->phys_base;
107+
return cpu_addr - ep->phys_base;
108108
default:
109109
dev_err(pci->dev, "UNKNOWN device type\n");
110110
}
111-
return pci_addr;
111+
return cpu_addr;
112112
}
113113

114114
static int artpec6_pcie_establish_link(struct dw_pcie *pci)

0 commit comments

Comments
 (0)