summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-10-11 12:41:32 -0400
committerDave Airlie <airlied@redhat.com>2010-10-12 20:18:06 +1000
commitd31dba58480c3cdd458f449261d72ecd15287792 (patch)
tree08062c96024e96321e47ae501b518b5e1308bc5c /drivers/gpu
parent40f76d81fb45c1399f93500afa2aed9f84f7dee6 (diff)
downloadop-kernel-dev-d31dba58480c3cdd458f449261d72ecd15287792.zip
op-kernel-dev-d31dba58480c3cdd458f449261d72ecd15287792.tar.gz
drm/radeon/kms: fix bad cast/shift in evergreen.c
Missing parens. fixes: https://bugs.freedesktop.org/show_bug.cgi?id=30718 Reported-by: Dave Gilbert <freedesktop@treblig.org> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index a90f0c0..2f93d46 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -1137,7 +1137,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:
OpenPOWER on IntegriCloud