diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-10-11 20:11:23 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-10-11 20:11:23 -0500 |
commit | afb374f8ac0715ff10e580e8d83c206dc4b7017e (patch) | |
tree | 46b73e359c9272d6014c31c5d1b70b37fa5b88f4 /drivers | |
parent | e4aea9c4adbdf920128d00d9c20c03a405df149c (diff) |
PCI: armada: Add local base pointer
Add a local "base" pointer, as is done for other uses, to simplify a
subsequent patch. No functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/host/pcie-armada8k.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-armada8k.c b/drivers/pci/host/pcie-armada8k.c index b97ba975dee4..121f6c8f4d2e 100644 --- a/drivers/pci/host/pcie-armada8k.c +++ b/drivers/pci/host/pcie-armada8k.c @@ -73,10 +73,11 @@ struct armada8k_pcie { static int armada8k_pcie_link_up(struct pcie_port *pp) { struct armada8k_pcie *pcie = to_armada8k_pcie(pp); + void __iomem *base = pcie->base; u32 reg; u32 mask = PCIE_GLB_STS_RDLH_LINK_UP | PCIE_GLB_STS_PHY_LINK_UP; - reg = readl(pcie->base + PCIE_GLOBAL_STATUS_REG); + reg = readl(base + PCIE_GLOBAL_STATUS_REG); if ((reg & mask) == mask) return 1; |