From 390640f3b93b1250cf32611e3aaa0100a3dd55c3 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Tue, 4 May 2010 17:27:37 +0300 Subject: [PATCH video-chips] Check xf86EnableAccess only in old servers On new X servers this function is dummy. Similar functionality is now in place using lock/unlock mechanism of the VGA arbitration, triggered inside the server. Signed-off-by: Tiago Vignatti --- src/ct_driver.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/ct_driver.c b/src/ct_driver.c index 6cf482a..a65afd0 100644 --- a/src/ct_driver.c +++ b/src/ct_driver.c @@ -4690,7 +4690,9 @@ chipsDisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode, if (!pScrn->vtSema) return; +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 9 xf86EnableAccess(pScrn); +#endif switch (PowerManagementMode) { case DPMSModeOn: /* Screen: On; HSync: On, VSync: On */ -- 1.6.0.4