aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_sun4v.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/pci_sun4v.c')
-rw-r--r--arch/sparc64/kernel/pci_sun4v.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c
index 7bee6b19272e..9b57ba1cb947 100644
--- a/arch/sparc64/kernel/pci_sun4v.c
+++ b/arch/sparc64/kernel/pci_sun4v.c
@@ -1301,8 +1301,6 @@ static void pci_sun4v_msi_init(struct pci_pbm_info *pbm)
1301static void pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node *dp, u32 devhandle) 1301static void pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node *dp, u32 devhandle)
1302{ 1302{
1303 struct pci_pbm_info *pbm; 1303 struct pci_pbm_info *pbm;
1304 struct property *prop;
1305 int len, i;
1306 1304
1307 if (devhandle & 0x40) 1305 if (devhandle & 0x40)
1308 pbm = &p->pbm_B; 1306 pbm = &p->pbm_B;
@@ -1319,17 +1317,6 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node
1319 1317
1320 printk("%s: SUN4V PCI Bus Module\n", pbm->name); 1318 printk("%s: SUN4V PCI Bus Module\n", pbm->name);
1321 1319
1322 prop = of_find_property(dp, "ranges", &len);
1323 pbm->pbm_ranges = prop->value;
1324 pbm->num_pbm_ranges =
1325 (len / sizeof(struct linux_prom_pci_ranges));
1326
1327 /* Mask out the top 8 bits of the ranges, leaving the real
1328 * physical address.
1329 */
1330 for (i = 0; i < pbm->num_pbm_ranges; i++)
1331 pbm->pbm_ranges[i].parent_phys_hi &= 0x0fffffff;
1332
1333 pci_determine_mem_io_space(pbm); 1320 pci_determine_mem_io_space(pbm);
1334 1321
1335 pci_sun4v_get_bus_range(pbm); 1322 pci_sun4v_get_bus_range(pbm);