File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -330,8 +330,6 @@ static int rcar_pcie_enable(struct rcar_pcie_host *host)
330
330
struct pci_host_bridge * bridge = pci_host_bridge_from_priv (host );
331
331
struct rcar_pcie * pcie = & host -> pcie ;
332
332
struct device * dev = pcie -> dev ;
333
- struct pci_bus * bus , * child ;
334
- int ret ;
335
333
336
334
/* Try setting 5 GT/s link speed */
337
335
rcar_pcie_force_speedup (pcie );
@@ -349,21 +347,7 @@ static int rcar_pcie_enable(struct rcar_pcie_host *host)
349
347
if (IS_ENABLED (CONFIG_PCI_MSI ))
350
348
bridge -> msi = & host -> msi .chip ;
351
349
352
- ret = pci_scan_root_bus_bridge (bridge );
353
- if (ret < 0 )
354
- return ret ;
355
-
356
- bus = bridge -> bus ;
357
-
358
- pci_bus_size_bridges (bus );
359
- pci_bus_assign_resources (bus );
360
-
361
- list_for_each_entry (child , & bus -> children , node )
362
- pcie_bus_configure_settings (child );
363
-
364
- pci_bus_add_devices (bus );
365
-
366
- return 0 ;
350
+ return pci_host_probe (bridge );
367
351
}
368
352
369
353
static int phy_wait_for_ack (struct rcar_pcie * pcie )
You can’t perform that action at this time.
0 commit comments