File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
drivers/pci/controller/mobiveil Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -569,8 +569,6 @@ int mobiveil_pcie_host_probe(struct mobiveil_pcie *pcie)
569
569
struct mobiveil_root_port * rp = & pcie -> rp ;
570
570
struct pci_host_bridge * bridge = rp -> bridge ;
571
571
struct device * dev = & pcie -> pdev -> dev ;
572
- struct pci_bus * bus ;
573
- struct pci_bus * child ;
574
572
int ret ;
575
573
576
574
ret = mobiveil_pcie_parse_dt (pcie );
@@ -620,17 +618,5 @@ int mobiveil_pcie_host_probe(struct mobiveil_pcie *pcie)
620
618
return ret ;
621
619
}
622
620
623
- /* setup the kernel resources for the newly added PCIe root bus */
624
- ret = pci_scan_root_bus_bridge (bridge );
625
- if (ret )
626
- return ret ;
627
-
628
- bus = bridge -> bus ;
629
-
630
- pci_assign_unassigned_bus_resources (bus );
631
- list_for_each_entry (child , & bus -> children , node )
632
- pcie_bus_configure_settings (child );
633
- pci_bus_add_devices (bus );
634
-
635
- return 0 ;
621
+ return pci_host_probe (bridge );
636
622
}
You can’t perform that action at this time.
0 commit comments