aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-05-17 21:51:11 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-06-13 17:42:22 -0400
commitb918c62e086b2130a7bae44110ca516ef10bfe5a (patch)
treee4aee0e76da9a6ddd2d787de63f4ae7ad4d10e59 /arch/tile
parent92f02430934ca1c1e991a1ab3541880575042697 (diff)
PCI: replace struct pci_bus secondary/subordinate with busn_res
Replace the struct pci_bus secondary/subordinate members with the struct resource busn_res. Later we'll build a resource tree of these bus numbers. [bhelgaas: changelog] Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/kernel/pci.c4
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] =