summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2020-05-22 17:48:23 -0600
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-07-10 11:50:23 +0100
commit67047e8bc8aa4b4d57c5e2bd00d48ac7c8b8757b (patch)
tree0d32ffb8e40519db3f3931b003df0e97fc785680 /drivers
parent1f9b751220ce53d4ea7edf7dda90f495ce810494 (diff)
downloadlinux-67047e8bc8aa4b4d57c5e2bd00d48ac7c8b8757b.tar.bz2
PCI: tegra: Use pci_host_probe() to register host
The tegra host driver does the same host registration and bus scanning calls as pci_host_probe, so let's use it instead. Link: https://lore.kernel.org/r/20200522234832.954484-7-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: linux-tegra@vger.kernel.org
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/controller/pci-tegra.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c
index 235b456698fc..82fb36ed6f52 100644
--- a/drivers/pci/controller/pci-tegra.c
+++ b/drivers/pci/controller/pci-tegra.c
@@ -2670,7 +2670,6 @@ static int tegra_pcie_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct pci_host_bridge *host;
struct tegra_pcie *pcie;
- struct pci_bus *child;
struct resource *bus;
int err;
@@ -2721,20 +2720,12 @@ static int tegra_pcie_probe(struct platform_device *pdev)
host->map_irq = tegra_pcie_map_irq;
host->swizzle_irq = pci_common_swizzle;
- err = pci_scan_root_bus_bridge(host);
+ err = pci_host_probe(host);
if (err < 0) {
dev_err(dev, "failed to register host: %d\n", err);
goto pm_runtime_put;
}
- pci_bus_size_bridges(host->bus);
- pci_bus_assign_resources(host->bus);
-
- list_for_each_entry(child, &host->bus->children, node)
- pcie_bus_configure_settings(child);
-
- pci_bus_add_devices(host->bus);
-
if (IS_ENABLED(CONFIG_DEBUG_FS)) {
err = tegra_pcie_debugfs_init(pcie);
if (err < 0)