diff options
Diffstat (limited to 'arch/tile/kernel/pci.c')
-rw-r--r-- | arch/tile/kernel/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index b56d12bf5900..54cc8d77c90c 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c | |||
@@ -329,7 +329,7 @@ int __init pcibios_init(void) | |||
329 | */ | 329 | */ |
330 | bus = pci_scan_bus(0, controller->ops, controller); | 330 | bus = pci_scan_bus(0, controller->ops, controller); |
331 | controller->root_bus = bus; | 331 | controller->root_bus = bus; |
332 | controller->last_busno = bus->subordinate; | 332 | controller->last_busno = bus->busn_res.end; |
333 | } | 333 | } |
334 | } | 334 | } |
335 | 335 | ||
@@ -366,7 +366,7 @@ int __init pcibios_init(void) | |||
366 | */ | 366 | */ |
367 | if ((dev->class >> 8) == PCI_CLASS_BRIDGE_PCI && | 367 | if ((dev->class >> 8) == PCI_CLASS_BRIDGE_PCI && |
368 | (PCI_SLOT(dev->devfn) == 0)) { | 368 | (PCI_SLOT(dev->devfn) == 0)) { |
369 | next_bus = dev->subordinate; | 369 | next_bus = dev->busn_res.end; |
370 | controllers[i].mem_resources[0] = | 370 | controllers[i].mem_resources[0] = |
371 | *next_bus->resource[0]; | 371 | *next_bus->resource[0]; |
372 | controllers[i].mem_resources[1] = | 372 | controllers[i].mem_resources[1] = |