aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_schizo.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_schizo.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_schizo.c')
-rw-r--r--arch/sparc64/kernel/pci_schizo.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/sparc64/kernel/pci_schizo.c b/arch/sparc64/kernel/pci_schizo.c
index 91a7385e5d32..c0a6a3866e2f 100644
--- a/arch/sparc64/kernel/pci_schizo.c
+++ b/arch/sparc64/kernel/pci_schizo.c
@@ -1491,10 +1491,8 @@ static void schizo_pbm_init(struct pci_controller_info *p,
1491 int chip_type) 1491 int chip_type)
1492{ 1492{
1493 const struct linux_prom64_registers *regs; 1493 const struct linux_prom64_registers *regs;
1494 const unsigned int *busrange;
1495 struct pci_pbm_info *pbm; 1494 struct pci_pbm_info *pbm;
1496 const char *chipset_name; 1495 const char *chipset_name;
1497 const u32 *ino_bitmap;
1498 int is_pbm_a; 1496 int is_pbm_a;
1499 1497
1500 switch (chip_type) { 1498 switch (chip_type) {
@@ -1555,13 +1553,7 @@ static void schizo_pbm_init(struct pci_controller_info *p,
1555 1553
1556 pci_determine_mem_io_space(pbm); 1554 pci_determine_mem_io_space(pbm);
1557 1555
1558 ino_bitmap = of_get_property(dp, "ino-bitmap", NULL); 1556 pci_get_pbm_props(pbm);
1559 pbm->ino_bitmap = (((u64)ino_bitmap[1] << 32UL) |
1560 ((u64)ino_bitmap[0] << 0UL));
1561
1562 busrange = of_get_property(dp, "bus-range", NULL);
1563 pbm->pci_first_busno = busrange[0];
1564 pbm->pci_last_busno = busrange[1];
1565 1557
1566 schizo_pbm_iommu_init(pbm); 1558 schizo_pbm_iommu_init(pbm);
1567 schizo_pbm_strbuf_init(pbm); 1559 schizo_pbm_strbuf_init(pbm);