Skip to content

Commit

Permalink
PCI: armada: Add local base pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bjorn Helgaas committed Oct 12, 2016
1 parent e4aea9c commit afb374f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pci/host/pcie-armada8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afb374f

Please sign in to comment.