File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -2670,7 +2670,6 @@ static int tegra_pcie_probe(struct platform_device *pdev)
2670
2670
struct device * dev = & pdev -> dev ;
2671
2671
struct pci_host_bridge * host ;
2672
2672
struct tegra_pcie * pcie ;
2673
- struct pci_bus * child ;
2674
2673
struct resource * bus ;
2675
2674
int err ;
2676
2675
@@ -2721,20 +2720,12 @@ static int tegra_pcie_probe(struct platform_device *pdev)
2721
2720
host -> map_irq = tegra_pcie_map_irq ;
2722
2721
host -> swizzle_irq = pci_common_swizzle ;
2723
2722
2724
- err = pci_scan_root_bus_bridge (host );
2723
+ err = pci_host_probe (host );
2725
2724
if (err < 0 ) {
2726
2725
dev_err (dev , "failed to register host: %d\n" , err );
2727
2726
goto pm_runtime_put ;
2728
2727
}
2729
2728
2730
- pci_bus_size_bridges (host -> bus );
2731
- pci_bus_assign_resources (host -> bus );
2732
-
2733
- list_for_each_entry (child , & host -> bus -> children , node )
2734
- pcie_bus_configure_settings (child );
2735
-
2736
- pci_bus_add_devices (host -> bus );
2737
-
2738
2729
if (IS_ENABLED (CONFIG_DEBUG_FS )) {
2739
2730
err = tegra_pcie_debugfs_init (pcie );
2740
2731
if (err < 0 )
You can’t perform that action at this time.
0 commit comments