[PATCH 04/13] drmmode: remove dead code from drmmode_crtc_dpms

Ilija Hadzic ilijahadzic at gmail.com
Wed May 8 19:39:39 PDT 2013


We are about to modify this function, so let's clean it
up first.

Signed-off-by: Ilija Hadzic <ihadzic at research.bell-labs.com>
---
 src/drmmode_display.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 5db58da..658747c 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -245,17 +245,8 @@ static void
 drmmode_crtc_dpms(xf86CrtcPtr crtc, int mode)
 {
 	drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
-//	drmmode_ptr drmmode = drmmode_crtc->drmmode;
 
 	drmmode_crtc->dpms_mode = mode;
-
-#if 0
-	/* bonghits in the randr 1.2 - uses dpms to disable crtc - bad buzz */
-	if (mode == DPMSModeOff) {
-//		drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
-//			       0, 0, 0, NULL, 0, NULL);
-	}
-#endif
 }
 
 static PixmapPtr
-- 
1.8.1.5



More information about the xorg-driver-ati mailing list