From patchwork Tue Jun 14 19:15:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 879892 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5EJGJX4006855 for ; Tue, 14 Jun 2011 19:16:39 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A9D6A02CC for ; Tue, 14 Jun 2011 12:16:19 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vx0-f177.google.com (mail-vx0-f177.google.com [209.85.220.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E2369E758 for ; Tue, 14 Jun 2011 12:16:09 -0700 (PDT) Received: by vxd2 with SMTP id 2so6061309vxd.36 for ; Tue, 14 Jun 2011 12:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=ECAc6ov1bQzSjkvZmVo+Z3P4V/ZRqCBk49lIhZzxITA=; b=HRa8ExXGeEGZutCCG4RNxv2TElakt4V5hjs3pHLj/+OWgV6Q/L5uETHBHRlwR3TbPv dE4g7Io/H6ZDCswA8OIJKzhuUbmqJ9tKv65/PHLpcZmcUWlLDS7bu1yMdVnHZT5fHBU0 vZCyfRVJrY0dNimztAEFj4r9NngrHlJFVm9JY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=rsQ5PYz8nLeAaBDo/yWbt1O/lk1sUGQa1TcmJ0rQGnEPRmuX6CurQPR/I5OoBpOd5f GDJiXqnIzaKzUNK82TlG5rKRTewPnzS7rhv9yXetwDeB0XfegoWQbrXvY9LrtoDQRRaq LxicIqZh/Ca2GPk69KDe+BHb7cV8ra6b7eva4= Received: by 10.220.182.12 with SMTP id ca12mr2728900vcb.55.1308078965254; Tue, 14 Jun 2011 12:16:05 -0700 (PDT) Received: from localhost.localdomain (static-74-96-105-7.washdc.fios.verizon.net [74.96.105.7]) by mx.google.com with ESMTPS id c26sm1053164vcj.29.2011.06.14.12.16.04 (version=SSLv3 cipher=OTHER); Tue, 14 Jun 2011 12:16:04 -0700 (PDT) From: Alex Deucher To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon/kms: signed fix for evergreen thermal Date: Tue, 14 Jun 2011 15:15:53 -0400 Message-Id: <1308078953-6454-1-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.1.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 14 Jun 2011 19:16:39 +0000 (UTC) temperature is signed. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index e1b3d99..b06f2db 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -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) >>