From patchwork Mon Oct 11 16:41:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 245791 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9BH0bVl030739 for ; Mon, 11 Oct 2010 17:00:58 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 874549EFA8 for ; Mon, 11 Oct 2010 09:41:50 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vw0-f49.google.com (mail-vw0-f49.google.com [209.85.212.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 817069E7D5 for ; Mon, 11 Oct 2010 09:41:42 -0700 (PDT) Received: by vws5 with SMTP id 5so685229vws.36 for ; Mon, 11 Oct 2010 09:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=VzgMj++C66t8h0cmjvfE0obeKvEn6fq1WV0G0VZ+r1g=; b=FEiRDL1TOGq+geny0pkbuCXWxC9LpVnPmGDD8K90oKD4CLfP9W7imVkd2UdHj76FS5 UVRax+sC8BuGjXJTyo9Qt96pfL82s1EMOm6+EQQ20mWThjF2UB3nkNmZLBK12ysee7Ro kpSRyqA8td/UjWbQ9Pq2H9m3zJFKm69EKIlCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=lNe/wgXscSULauunTDxJxdxsXD0OrhhCS4FakGk4K29IAb7ALblby3+6nW9k7r/YNa dA8wRSN5x6CZVp0C04hPnXZkBf+YyC9bNtFaTYzaxs1xetEuaqESVGr8yuzyV20WvBZE 4GXvqNuzYqy1H9haWdT6wQdDbGBURDvT9ScqU= Received: by 10.220.201.77 with SMTP id ez13mr1996747vcb.78.1286815300529; Mon, 11 Oct 2010 09:41:40 -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 f17sm4060848vbf.12.2010.10.11.09.41.39 (version=SSLv3 cipher=RC4-MD5); Mon, 11 Oct 2010 09:41:39 -0700 (PDT) From: Alex Deucher To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon/kms: fix bad cast/shift in evergreen.c Date: Mon, 11 Oct 2010 12:41:32 -0400 Message-Id: <1286815292-1630-1-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.1.1 Cc: stable@kernel.org 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.3 (demeter1.kernel.org [140.211.167.41]); Mon, 11 Oct 2010 17:00:58 +0000 (UTC) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 2d38eae..2117cf5 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -1208,7 +1208,7 @@ static void evergreen_gpu_init(struct radeon_device *rdev) WREG32(RCU_IND_INDEX, 0x203); efuse_straps_3 = RREG32(RCU_IND_DATA); - efuse_box_bit_127_124 = (u8)(efuse_straps_3 & 0xF0000000) >> 28; + efuse_box_bit_127_124 = (u8)((efuse_straps_3 & 0xF0000000) >> 28); switch(efuse_box_bit_127_124) { case 0x0: