diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-05-08 00:51:41 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-05-08 19:41:12 -0400 |
commit | cfa0652c4eb4ca37f88fcdd7d871cf98d9d98c0e (patch) | |
tree | 14a3278bd62870a1b0a8fb3ba709fd2f3f3257ee /arch/sparc64/kernel/pci_sun4v.c | |
parent | 36f021b579d195cdc5fa6f3e2bab198b4bf70643 (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_sun4v.c')
-rw-r--r-- | arch/sparc64/kernel/pci_sun4v.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c index 1ccf4c9a9a43..1491ba330583 100644 --- a/arch/sparc64/kernel/pci_sun4v.c +++ b/arch/sparc64/kernel/pci_sun4v.c | |||
@@ -802,20 +802,6 @@ static void pci_sun4v_iommu_init(struct pci_pbm_info *pbm) | |||
802 | pbm->name, sz); | 802 | pbm->name, sz); |
803 | } | 803 | } |
804 | 804 | ||
805 | static void pci_sun4v_get_bus_range(struct pci_pbm_info *pbm) | ||
806 | { | ||
807 | struct property *prop; | ||
808 | unsigned int *busrange; | ||
809 | |||
810 | prop = of_find_property(pbm->prom_node, "bus-range", NULL); | ||
811 | |||
812 | busrange = prop->value; | ||
813 | |||
814 | pbm->pci_first_busno = busrange[0]; | ||
815 | pbm->pci_last_busno = busrange[1]; | ||
816 | |||
817 | } | ||
818 | |||
819 | #ifdef CONFIG_PCI_MSI | 805 | #ifdef CONFIG_PCI_MSI |
820 | struct pci_sun4v_msiq_entry { | 806 | struct pci_sun4v_msiq_entry { |
821 | u64 version_type; | 807 | u64 version_type; |
@@ -1271,7 +1257,7 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node | |||
1271 | 1257 | ||
1272 | pci_determine_mem_io_space(pbm); | 1258 | pci_determine_mem_io_space(pbm); |
1273 | 1259 | ||
1274 | pci_sun4v_get_bus_range(pbm); | 1260 | pci_get_pbm_props(pbm); |
1275 | pci_sun4v_iommu_init(pbm); | 1261 | pci_sun4v_iommu_init(pbm); |
1276 | pci_sun4v_msi_init(pbm); | 1262 | pci_sun4v_msi_init(pbm); |
1277 | } | 1263 | } |