summaryrefslogtreecommitdiff
path: root/src/via_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/via_driver.c')
-rw-r--r--src/via_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/via_driver.c b/src/via_driver.c
index 152e9b6..e1a6b6e 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -405,6 +405,7 @@ VIAFreeScreen(FREE_SCREEN_ARGS_DECL)
}
if (!pVia->KMS) {
+ viaUnmapFB(pScrn);
viaUnmapMMIO(pScrn);
}
@@ -1215,6 +1216,7 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
goto exit;
fail:
if (!pVia->KMS) {
+ viaUnmapFB(pScrn);
viaUnmapMMIO(pScrn);
}
@@ -1403,6 +1405,7 @@ VIACloseScreen(CLOSE_SCREEN_ARGS_DECL)
#endif
if (!pVia->KMS) {
+ viaUnmapFB(pScrn);
viaUnmapMMIO(pScrn);
}