File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -591,7 +591,6 @@ static int xgene_pcie_probe(struct platform_device *pdev)
591
591
struct device * dev = & pdev -> dev ;
592
592
struct device_node * dn = dev -> of_node ;
593
593
struct xgene_pcie_port * port ;
594
- struct pci_bus * bus , * child ;
595
594
struct pci_host_bridge * bridge ;
596
595
int ret ;
597
596
@@ -632,17 +631,7 @@ static int xgene_pcie_probe(struct platform_device *pdev)
632
631
bridge -> map_irq = of_irq_parse_and_map_pci ;
633
632
bridge -> swizzle_irq = pci_common_swizzle ;
634
633
635
- ret = pci_scan_root_bus_bridge (bridge );
636
- if (ret < 0 )
637
- return ret ;
638
-
639
- bus = bridge -> bus ;
640
-
641
- pci_assign_unassigned_bus_resources (bus );
642
- list_for_each_entry (child , & bus -> children , node )
643
- pcie_bus_configure_settings (child );
644
- pci_bus_add_devices (bus );
645
- return 0 ;
634
+ return pci_host_probe (bridge );
646
635
}
647
636
648
637
static const struct of_device_id xgene_pcie_match_table [] = {
You can’t perform that action at this time.
0 commit comments