Skip to contentSkip to conversation

drm/radeon/kms: signed fix for evergreen thermal

PATCH New Alex Deucher 1 participant 1 message Jun 14, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/kms: signed fix for evergreen thermal

temperature is signed.

---
 drivers/gpu/drm/radeon/evergreen.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +2 -1
index e1b3d99..b06f2db 100644
@@ -88,7 +88,8 @@ u32 evergreen_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base)
 /* get temperature in millidegrees */
 int evergreen_get_temp(struct radeon_device *rdev)
 {
-	u32 temp, toffset, actual_temp = 0;
+	u32 temp, toffset;
+	int actual_temp = 0;
 
 	if (rdev->family == CHIP_JUNIPER) {
 		toffset = (RREG32(CG_THERMAL_CTRL) & TOFFSET_MASK) >>
Signature · 1 line
1.7.1.1