diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-04-22 18:42:36 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-04-23 11:49:23 -0400 |
commit | 0da80f34b5aa5999d2030ffbc5187328fa4e4ae5 (patch) | |
tree | fdd5f60373d83a06f0f906f73147d2d07b24da61 /src/radeon_pm.c | |
parent | 1a7b982457ead5f21c6e62a409ca0dbf86005607 (diff) |
radeon: minor cleanup and warning fix
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); |