mirror of
https://github.com/X11Libre/xf86-video-sis.git
synced 2026-03-24 01:25:01 +00:00
fixup unmap memory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user