aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-tegra.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/pci-tegra.c
parentPCI: versatile: Drop flag PCI_ENABLE_PROC_DOMAINS (diff)
downloadlinux-dev-6a589900d05091dfec6d9d1f35245a6578cccee6.tar.xz
linux-dev-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/pci-tegra.c')
-rw-r--r--drivers/pci/controller/pci-tegra.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c
index 71bf4b2684ac..41232bd07c3d 100644
--- a/drivers/pci/controller/pci-tegra.c
+++ b/drivers/pci/controller/pci-tegra.c
@@ -2713,7 +2713,6 @@ static int tegra_pcie_probe(struct platform_device *pdev)
}
host->busnr = bus->start;
- host->dev.parent = &pdev->dev;
host->ops = &tegra_pcie_ops;
host->map_irq = tegra_pcie_map_irq;
host->swizzle_irq = pci_common_swizzle;