aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-12-06 10:04:33 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-10 21:42:36 -0500
commit6207e81695c1a64ebed668f26106f3384ad2323a (patch)
treeec303ea6f50cf41fb51eb027025239146f9d50db /arch
parent9ccc4fd260397f0f8ac6078f4cd45fda2d320ead (diff)
[POWERPC] Don't special case pci_domain_nr() for iSeries
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/pci-common.c9
-rw-r--r--arch/powerpc/platforms/iseries/pci.c2
2 files changed, 4 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 78cdb700451c..5a9d4c7bfec5 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -115,15 +115,10 @@ int pcibios_vaddr_is_ioport(void __iomem *address)
115 */ 115 */
116int pci_domain_nr(struct pci_bus *bus) 116int pci_domain_nr(struct pci_bus *bus)
117{ 117{
118 if (firmware_has_feature(FW_FEATURE_ISERIES)) 118 struct pci_controller *hose = pci_bus_to_host(bus);
119 return 0;
120 else {
121 struct pci_controller *hose = pci_bus_to_host(bus);
122 119
123 return hose->global_number; 120 return hose->global_number;
124 }
125} 121}
126
127EXPORT_SYMBOL(pci_domain_nr); 122EXPORT_SYMBOL(pci_domain_nr);
128 123
129#ifdef CONFIG_PPC_OF 124#ifdef CONFIG_PPC_OF
diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c
index db0a17e9c4cc..3071a30356ce 100644
--- a/arch/powerpc/platforms/iseries/pci.c
+++ b/arch/powerpc/platforms/iseries/pci.c
@@ -673,6 +673,8 @@ void __init iSeries_pcibios_init(void)
673 phb = pcibios_alloc_controller(node); 673 phb = pcibios_alloc_controller(node);
674 if (phb == NULL) 674 if (phb == NULL)
675 continue; 675 continue;
676 /* All legacy iSeries PHBs are in domain zero */
677 phb->global_number = 0;
676 678
677 phb->pci_mem_offset = bus; 679 phb->pci_mem_offset = bus;
678 phb->first_busno = bus; 680 phb->first_busno = bus;