aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2012-10-24 12:29:49 -0400
committerAlex Deucher <alexander.deucher@amd.com>2012-11-01 10:34:16 -0400
commit83325d072185899b706de2956170b246585aaec9 (patch)
treeaa295d37cd7d4db13f7549fef87f16d9038276ff /drivers/gpu/drm
parent4936b172d699434547addbe452c2d600ea6a4baf (diff)
DRM/Radeon: Fix Load Detection on legacy primary DAC.
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
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_encoders.c1
1 files changed, 1 insertions, 0 deletions
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
671 tmp |= RADEON_DAC_RANGE_CNTL_PS2 | RADEON_DAC_CMP_EN; 671 tmp |= RADEON_DAC_RANGE_CNTL_PS2 | RADEON_DAC_CMP_EN;
672 WREG32(RADEON_DAC_CNTL, tmp); 672 WREG32(RADEON_DAC_CNTL, tmp);
673 673
674 tmp = dac_macro_cntl;
674 tmp &= ~(RADEON_DAC_PDWN_R | 675 tmp &= ~(RADEON_DAC_PDWN_R |
675 RADEON_DAC_PDWN_G | 676 RADEON_DAC_PDWN_G |
676 RADEON_DAC_PDWN_B); 677 RADEON_DAC_PDWN_B);