DRM/Radeon: Fix Load Detection on legacy primary DAC.
authorEgbert Eich <eich@suse.de>
Wed, 24 Oct 2012 16:29:49 +0000 (18:29 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Nov 2012 14:34:16 +0000 (10:34 -0400)
An uninitialized variable led to broken load detection.

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_legacy_encoders.c

index 0063df9d166d70f5267003d24bc078093f2fdf9a..f278f20ea12a02a1a6612f15e6de98bc5c5e6a23 100644 (file)
@@ -671,6 +671,7 @@ static enum drm_connector_status radeon_legacy_primary_dac_detect(struct drm_enc
        tmp |= RADEON_DAC_RANGE_CNTL_PS2 | RADEON_DAC_CMP_EN;
        WREG32(RADEON_DAC_CNTL, tmp);
 
+       tmp = dac_macro_cntl;
        tmp &= ~(RADEON_DAC_PDWN_R |
                 RADEON_DAC_PDWN_G |
                 RADEON_DAC_PDWN_B);