Skip to content

Commit

Permalink
PCI: dra7xx: Remove redundant struct device pointer from dra7xx_pcie
Browse files Browse the repository at this point in the history
The DesignWare core already stores the struct device pointer in struct
pcie_port.  Remove the redundant copy from struct dra7xx_pcie.dev.  No
functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Bjorn Helgaas committed Oct 12, 2016
1 parent c7f8146 commit 01856d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/pci/host/pci-dra7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ struct dra7xx_pcie {
void __iomem *base;
struct phy **phy;
int phy_count;
struct device *dev;
struct pcie_port pp;
};

Expand Down Expand Up @@ -390,7 +389,6 @@ static int __init dra7xx_pcie_probe(struct platform_device *pdev)

dra7xx->base = base;
dra7xx->phy = phy;
dra7xx->dev = dev;
dra7xx->phy_count = phy_count;

pm_runtime_enable(dev);
Expand Down

0 comments on commit 01856d1

Please sign in to comment.