From: Egbert Eich Date: Wed, 24 Oct 2012 16:29:49 +0000 (+0200) Subject: DRM/Radeon: Fix Load Detection on legacy primary DAC. X-Git-Tag: MMI-PSA29.97-13-9~15599^2~2^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=83325d072185899b706de2956170b246585aaec9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git DRM/Radeon: Fix Load Detection on legacy primary DAC. An uninitialized variable led to broken load detection. Signed-off-by: Egbert Eich Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c index 0063df9d166d..f278f20ea12a 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c @@ -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);