File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ static int versatile_pci_probe(struct platform_device *pdev)
70
70
int ret , i , myslot = -1 , mem = 1 ;
71
71
u32 val ;
72
72
void __iomem * local_pci_cfg_base ;
73
- struct pci_bus * bus , * child ;
74
73
struct pci_host_bridge * bridge ;
75
74
76
75
bridge = devm_pci_alloc_host_bridge (dev , 0 );
@@ -164,18 +163,7 @@ static int versatile_pci_probe(struct platform_device *pdev)
164
163
bridge -> map_irq = of_irq_parse_and_map_pci ;
165
164
bridge -> swizzle_irq = pci_common_swizzle ;
166
165
167
- ret = pci_scan_root_bus_bridge (bridge );
168
- if (ret < 0 )
169
- return ret ;
170
-
171
- bus = bridge -> bus ;
172
-
173
- pci_assign_unassigned_bus_resources (bus );
174
- list_for_each_entry (child , & bus -> children , node )
175
- pcie_bus_configure_settings (child );
176
- pci_bus_add_devices (bus );
177
-
178
- return 0 ;
166
+ return pci_host_probe (bridge );
179
167
}
180
168
181
169
static const struct of_device_id versatile_pci_of_match [] = {
You can’t perform that action at this time.
0 commit comments