[IA64] Make SN2 PCI code use ioremap rather than manually mangle the address
[linux-drm-fsl-dcu.git] / arch / ia64 / sn / pci / tioce_provider.c
index f4c0b961a9390ccbaad79dc45413615a9f6addc3..84b72b27e27fcdc6917e3587f52c8b55039a355b 100644 (file)
@@ -1002,7 +1002,9 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont
                return NULL;
 
        memcpy(tioce_common, prom_bussoft, sizeof(struct tioce_common));
-       tioce_common->ce_pcibus.bs_base |= __IA64_UNCACHED_OFFSET;
+       tioce_common->ce_pcibus.bs_base = (unsigned long)
+               ioremap(REGION_OFFSET(tioce_common->ce_pcibus.bs_base),
+                       sizeof(struct tioce_common));
 
        tioce_kern = tioce_kern_init(tioce_common);
        if (tioce_kern == NULL) {