aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_sabre.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-05-08 00:51:41 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-05-08 19:41:12 -0400
commitcfa0652c4eb4ca37f88fcdd7d871cf98d9d98c0e (patch)
tree14a3278bd62870a1b0a8fb3ba709fd2f3f3257ee /arch/sparc64/kernel/pci_sabre.c
parent36f021b579d195cdc5fa6f3e2bab198b4bf70643 (diff)
[SPARC64] PCI: Use common routine to fetch PBM properties.
Namely bus-range and ino-bitmap. This allows us also to eliminate pci_controller_info's pci_{first,last}_busno fields as only the pbm ones are used now. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci_sabre.c')
-rw-r--r--arch/sparc64/kernel/pci_sabre.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/sparc64/kernel/pci_sabre.c b/arch/sparc64/kernel/pci_sabre.c
index 397862fbd9e1..9e706013d11a 100644
--- a/arch/sparc64/kernel/pci_sabre.c
+++ b/arch/sparc64/kernel/pci_sabre.c
@@ -1006,8 +1006,7 @@ static void sabre_pbm_init(struct pci_controller_info *p, struct device_node *dp
1006 pbm->chip_type = PBM_CHIP_TYPE_SABRE; 1006 pbm->chip_type = PBM_CHIP_TYPE_SABRE;
1007 pbm->parent = p; 1007 pbm->parent = p;
1008 pbm->prom_node = dp; 1008 pbm->prom_node = dp;
1009 pbm->pci_first_busno = p->pci_first_busno; 1009 pci_get_pbm_props(pbm);
1010 pbm->pci_last_busno = p->pci_last_busno;
1011 1010
1012 pci_determine_mem_io_space(pbm); 1011 pci_determine_mem_io_space(pbm);
1013} 1012}
@@ -1018,7 +1017,6 @@ void sabre_init(struct device_node *dp, char *model_name)
1018 struct pci_controller_info *p; 1017 struct pci_controller_info *p;
1019 struct iommu *iommu; 1018 struct iommu *iommu;
1020 int tsbsize; 1019 int tsbsize;
1021 const u32 *busrange;
1022 const u32 *vdma; 1020 const u32 *vdma;
1023 u32 upa_portid, dma_mask; 1021 u32 upa_portid, dma_mask;
1024 u64 clear_irq; 1022 u64 clear_irq;
@@ -1119,10 +1117,6 @@ void sabre_init(struct device_node *dp, char *model_name)
1119 1117
1120 sabre_iommu_init(p, tsbsize, vdma[0], dma_mask); 1118 sabre_iommu_init(p, tsbsize, vdma[0], dma_mask);
1121 1119
1122 busrange = of_get_property(dp, "bus-range", NULL);
1123 p->pci_first_busno = busrange[0];
1124 p->pci_last_busno = busrange[1];
1125
1126 /* 1120 /*
1127 * Look for APB underneath. 1121 * Look for APB underneath.
1128 */ 1122 */