@@ -1470,7 +1470,6 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
1470
1470
{
1471
1471
struct device * dev ;
1472
1472
int ret ;
1473
- struct pci_bus * child ;
1474
1473
struct pci_host_bridge * host = pci_host_bridge_from_priv (pcie );
1475
1474
1476
1475
dev = pcie -> dev ;
@@ -1531,21 +1530,12 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
1531
1530
host -> map_irq = pcie -> map_irq ;
1532
1531
host -> swizzle_irq = pci_common_swizzle ;
1533
1532
1534
- ret = pci_scan_root_bus_bridge (host );
1533
+ ret = pci_host_probe (host );
1535
1534
if (ret < 0 ) {
1536
1535
dev_err (dev , "failed to scan host: %d\n" , ret );
1537
1536
goto err_power_off_phy ;
1538
1537
}
1539
1538
1540
- pci_assign_unassigned_bus_resources (host -> bus );
1541
-
1542
- pcie -> root_bus = host -> bus ;
1543
-
1544
- list_for_each_entry (child , & host -> bus -> children , node )
1545
- pcie_bus_configure_settings (child );
1546
-
1547
- pci_bus_add_devices (host -> bus );
1548
-
1549
1539
return 0 ;
1550
1540
1551
1541
err_power_off_phy :
@@ -1558,8 +1548,10 @@ EXPORT_SYMBOL(iproc_pcie_setup);
1558
1548
1559
1549
int iproc_pcie_remove (struct iproc_pcie * pcie )
1560
1550
{
1561
- pci_stop_root_bus (pcie -> root_bus );
1562
- pci_remove_root_bus (pcie -> root_bus );
1551
+ struct pci_host_bridge * host = pci_host_bridge_from_priv (pcie );
1552
+
1553
+ pci_stop_root_bus (host -> bus );
1554
+ pci_remove_root_bus (host -> bus );
1563
1555
1564
1556
iproc_pcie_msi_disable (pcie );
1565
1557
0 commit comments