aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/controller/pcie-rcar-host.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2020-07-21 20:24:57 -0600
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-07-23 11:20:49 +0100
commit6a589900d05091dfec6d9d1f35245a6578cccee6 (patch)
tree6268b4cae54c79763af4128e996cd05d285a28d4 /drivers/pci/controller/pcie-rcar-host.c
parentPCI: versatile: Drop flag PCI_ENABLE_PROC_DOMAINS (diff)
downloadwireguard-linux-6a589900d05091dfec6d9d1f35245a6578cccee6.tar.xz
wireguard-linux-6a589900d05091dfec6d9d1f35245a6578cccee6.zip
PCI: Set default bridge parent device
The host bridge's parent device is always the platform device. As we already have a pointer to it in the devres functions, let's initialize the parent device. Drivers can still override the parent if desired. Link: https://lore.kernel.org/r/20200722022514.1283916-3-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/controller/pcie-rcar-host.c')
-rw-r--r--drivers/pci/controller/pcie-rcar-host.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/controller/pcie-rcar-host.c b/drivers/pci/controller/pcie-rcar-host.c
index 9069ad96fe95..3a8e749b4904 100644
--- a/drivers/pci/controller/pcie-rcar-host.c
+++ b/drivers/pci/controller/pcie-rcar-host.c
@@ -329,7 +329,6 @@ static int rcar_pcie_enable(struct rcar_pcie_host *host)
{
struct pci_host_bridge *bridge = pci_host_bridge_from_priv(host);
struct rcar_pcie *pcie = &host->pcie;
- struct device *dev = pcie->dev;
/* Try setting 5 GT/s link speed */
rcar_pcie_force_speedup(pcie);
@@ -338,7 +337,6 @@ static int rcar_pcie_enable(struct rcar_pcie_host *host)
pci_add_flags(PCI_REASSIGN_ALL_BUS);
- bridge->dev.parent = dev;
bridge->sysdata = host;
bridge->busnr = host->root_bus_nr;
bridge->ops = &rcar_pcie_ops;