aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_psycho.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_psycho.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_psycho.c')
-rw-r--r--arch/sparc64/kernel/pci_psycho.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/sparc64/kernel/pci_psycho.c b/arch/sparc64/kernel/pci_psycho.c
index 253d40ec2245..0f35135a40c5 100644
--- a/arch/sparc64/kernel/pci_psycho.c
+++ b/arch/sparc64/kernel/pci_psycho.c
@@ -1088,7 +1088,6 @@ static void psycho_pbm_strbuf_init(struct pci_controller_info *p,
1088static void psycho_pbm_init(struct pci_controller_info *p, 1088static void psycho_pbm_init(struct pci_controller_info *p,
1089 struct device_node *dp, int is_pbm_a) 1089 struct device_node *dp, int is_pbm_a)
1090{ 1090{
1091 unsigned int *busrange;
1092 struct property *prop; 1091 struct property *prop;
1093 struct pci_pbm_info *pbm; 1092 struct pci_pbm_info *pbm;
1094 1093
@@ -1117,10 +1116,7 @@ static void psycho_pbm_init(struct pci_controller_info *p,
1117 1116
1118 pci_determine_mem_io_space(pbm); 1117 pci_determine_mem_io_space(pbm);
1119 1118
1120 prop = of_find_property(dp, "bus-range", NULL); 1119 pci_get_pbm_props(pbm);
1121 busrange = prop->value;
1122 pbm->pci_first_busno = busrange[0];
1123 pbm->pci_last_busno = busrange[1];
1124 1120
1125 psycho_pbm_strbuf_init(p, pbm, is_pbm_a); 1121 psycho_pbm_strbuf_init(p, pbm, is_pbm_a);
1126} 1122}