diff options
author | Dave Airlie <airlied@linux.ie> | 2008-01-16 17:46:06 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-01-16 17:46:06 +1000 |
commit | 797e6215ad9039ebbab547581c8ab3c143afb14f (patch) | |
tree | c9b1a076d3dea83cfa029bfc5d2254ac872e59d6 | |
parent | 992f586cbf85d9d99059209afc66e62ee5eb80ce (diff) |
fixup unmap memory
-rw-r--r-- | src/sis_vga.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sis_vga.c b/src/sis_vga.c index 3bb6a90..03cf069 100644 --- a/src/sis_vga.c +++ b/src/sis_vga.c @@ -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 |