diff options
Diffstat (limited to 'src/radeon_pm.c')
-rw-r--r-- | src/radeon_pm.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/radeon_pm.c b/src/radeon_pm.c index faf7af9c..5267fbc3 100644 --- a/src/radeon_pm.c +++ b/src/radeon_pm.c @@ -798,18 +798,10 @@ void RADEONPMFini(ScrnInfoPtr pScrn) void RADEONPMBlockHandler(ScrnInfoPtr pScrn) { - xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); - int i; - - for (i = 0; i < xf86_config->num_crtc; i++) { - xf86CrtcPtr crtc = xf86_config->crtc[i]; - RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private; - - if (radeon_crtc->enabled) - break; - } + RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn); - if (i == xf86_config->num_crtc) + if ((!pRADEONEnt->Controller[0]->enabled) && + (!pRADEONEnt->Controller[1]->enabled)) RADEONSetStaticPowerMode(pScrn, POWER_LOW); else RADEONSetStaticPowerMode(pScrn, POWER_HIGH); |