summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-11-17 15:53:28 -0500
committerAdam Jackson <ajax@redhat.com>2011-11-17 15:53:28 -0500
commit729e379f277ae94d4b1ae2d6bab46dceec9b30b1 (patch)
tree9a0c6a68a6c230aa51c8d2ac982e96e3c58de038
parent92b4671ca75022a56ad9e85b347f81c12157c98f (diff)
Check ABI major not encoded ABI
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--src/s3v_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s3v_driver.c b/src/s3v_driver.c
index 0f754dd..1631b25 100644
--- a/src/s3v_driver.c
+++ b/src/s3v_driver.c
@@ -3523,7 +3523,7 @@ S3VEnableMmio(ScrnInfoPtr pScrn)
hwp = VGAHWPTR(pScrn);
ps3v = S3VPTR(pScrn);
-#if ABI_VIDEODRV_VERSION < 12
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
PIOOffset = hwp->PIOOffset;
#endif
@@ -3591,7 +3591,7 @@ S3VDisableMmio(ScrnInfoPtr pScrn)
ps3v = S3VPTR(pScrn);
vgaCRIndex = hwp->IOBase + 4;
-#if ABI_VIDEODRV_VERSION < 12
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
vgaCRIndex += hwp->PIOOffset;
#endif
vgaCRReg = vgaCRIndex + 1;