fixup unmap memory

This commit is contained in:
Dave Airlie
2008-01-16 17:46:06 +10:00
parent 992f586cbf
commit 797e6215ad

View File

@@ -1738,11 +1738,8 @@ SiSVGAUnmapMem(ScrnInfoPtr pScrn)
SISPtr pSiS = SISPTR(pScrn);
if(pSiS->VGAMemBase == NULL) return;
#if XSERVER_LIBPCIACCESS
pci_device_unmap_range(pSiS->PciInfo, pSiS->VGAMemBase, pSiS->VGAMapSize);
#else
xf86UnMapVidMem(pScrn->scrnIndex, pSiS->VGAMemBase, pSiS->VGAMapSize);
#endif
pSiS->VGAMemBase = NULL;
}
#endif