aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_psycho.c
diff options
context:
space:
mode:
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}