summaryrefslogtreecommitdiff
path: root/src/glint_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glint_driver.c')
-rw-r--r--src/glint_driver.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/glint_driver.c b/src/glint_driver.c
index 26c06a3..f67e627 100644
--- a/src/glint_driver.c
+++ b/src/glint_driver.c
@@ -1929,9 +1929,12 @@ GLINTPreInit(ScrnInfoPtr pScrn, int flags)
{
xf86MonPtr pMon = NULL;
- if (pGlint->DDCBus)
+ if (pGlint->DDCBus) {
+ GLINTMapMem(pScrn);
pMon = xf86DoEDID_DDC2(pScrn->scrnIndex, pGlint->DDCBus);
-
+ GLINTUnmapMem(pScrn);
+ }
+
if (!pMon)
/* Try DDC1 */;