diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-12-06 21:58:04 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-12-06 21:58:04 +0000 |
commit | 54130b87c933a6c95d624fe91ff7c34d60d16801 (patch) | |
tree | 26ebd8bdd8491f5927e5e19ef95b5be893614181 /driver | |
parent | c7ad3a4c506aee0151c808070f40425febf38bb0 (diff) |
Don't call xf86DPMSInit() twice. Since it wraps CloseScreen(), this has
disastrous effects. Gets rid of some duplicated code as a bonus. Fixes
X server crashes that appeared with the xserver 1.9.2 import.
ok miod@
Diffstat (limited to 'driver')
-rw-r--r-- | driver/xf86-video-sunffb/src/ffb_driver.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/driver/xf86-video-sunffb/src/ffb_driver.c b/driver/xf86-video-sunffb/src/ffb_driver.c index 68e4dbc27..ec9e35225 100644 --- a/driver/xf86-video-sunffb/src/ffb_driver.c +++ b/driver/xf86-video-sunffb/src/ffb_driver.c @@ -59,7 +59,6 @@ static void FFBAdjustFrame(int scrnIndex, int x, int y, int flags); static void FFBFreeScreen(int scrnIndex, int flags); static ModeStatus FFBValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags); -static void FFBDPMSMode(ScrnInfoPtr pScrn, int DPMSMode, int flags); /* ffb_dga.c */ extern void FFB_InitDGA(ScreenPtr pScreen); @@ -805,8 +804,6 @@ FFBScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pScreen->CloseScreen = FFBCloseScreen; pScreen->SaveScreen = FFBSaveScreen; - (void) xf86DPMSInit(pScreen, FFBDPMSMode, 0); - /* Report any unused options (only for the first generation) */ if (serverGeneration == 1) { xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options); @@ -981,13 +978,3 @@ FFBSync(ScrnInfoPtr pScrn) { return; } - -/* - Hook for DPMS Mode. -*/ - -static void -FFBDPMSMode(ScrnInfoPtr pScrn, int DPMSMode, int flags) -{ - FFBDacDPMSMode(GET_FFB_FROM_SCRN(pScrn), DPMSMode, flags); -} |