summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <mark.kettenis@xs4all.nl>2009-06-04 11:29:10 -0600
committerMatthieu Herrb <matthieu.herrb@laas.fr>2009-06-04 11:37:34 -0600
commitfc258c28f99101f7a08bac3f08a66b70ba273161 (patch)
tree822c8af725f66e4411db15945a7c4579bd9631b1
parent2c022e126c027d20b4b060e31cccb012265cec6a (diff)
Fix DDC probe.
The driver tried to do DDC stuff without having its registers mapped. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
-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 */;