diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-06-27 02:17:57 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-06-29 02:58:37 -0400 |
commit | 5516b540e98de6f7474a4e7149470ad6a0bbc54a (patch) | |
tree | 9eb57336d892eb8c0e76584285030868df82f626 /arch/powerpc/kernel/pci_32.c | |
parent | 6a506238b33efd93e60c1585d654b37e292183de (diff) |
[POWERPC] Use global_number in ppc32 pci_controller
Make the pci_controller struct use global_number for the PHB domain number
instead of index to match what ppc64 does and reuse its pci_domain_nr code.
Introduced a pci-common.c to handle shared code between ppc32 & ppc64.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/pci_32.c')
-rw-r--r-- | arch/powerpc/kernel/pci_32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index 2d4a1c4f4e31..56deb316efd3 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c | |||
@@ -620,7 +620,7 @@ pcibios_alloc_controller(void) | |||
620 | *hose_tail = hose; | 620 | *hose_tail = hose; |
621 | hose_tail = &hose->next; | 621 | hose_tail = &hose->next; |
622 | 622 | ||
623 | hose->index = next_controller_index++; | 623 | hose->global_number = next_controller_index++; |
624 | 624 | ||
625 | return hose; | 625 | return hose; |
626 | } | 626 | } |
@@ -1336,7 +1336,7 @@ void __init pcibios_fixup_bus(struct pci_bus *bus) | |||
1336 | if (!res->flags) { | 1336 | if (!res->flags) { |
1337 | if (io_offset) | 1337 | if (io_offset) |
1338 | printk(KERN_ERR "I/O resource not set for host" | 1338 | printk(KERN_ERR "I/O resource not set for host" |
1339 | " bridge %d\n", hose->index); | 1339 | " bridge %d\n", hose->global_number); |
1340 | res->start = 0; | 1340 | res->start = 0; |
1341 | res->end = IO_SPACE_LIMIT; | 1341 | res->end = IO_SPACE_LIMIT; |
1342 | res->flags = IORESOURCE_IO; | 1342 | res->flags = IORESOURCE_IO; |
@@ -1350,7 +1350,7 @@ void __init pcibios_fixup_bus(struct pci_bus *bus) | |||
1350 | if (i > 0) | 1350 | if (i > 0) |
1351 | continue; | 1351 | continue; |
1352 | printk(KERN_ERR "Memory resource not set for " | 1352 | printk(KERN_ERR "Memory resource not set for " |
1353 | "host bridge %d\n", hose->index); | 1353 | "host bridge %d\n", hose->global_number); |
1354 | res->start = hose->pci_mem_offset; | 1354 | res->start = hose->pci_mem_offset; |
1355 | res->end = ~0U; | 1355 | res->end = ~0U; |
1356 | res->flags = IORESOURCE_MEM; | 1356 | res->flags = IORESOURCE_MEM; |