[PATCH] drm/radeon/kms: fix bad cast/shift in evergreen.c
Matt Turner
mattst88 at gmail.com
Mon Oct 11 12:58:09 PDT 2010
On Mon, Oct 11, 2010 at 12:41 PM, Alex Deucher <alexdeucher at gmail.com> wrote:
> Missing parens.
>
> fixes:
> https://bugs.freedesktop.org/show_bug.cgi?id=30718
>
> Reported-by: Dave Gilbert <freedesktop at treblig.org>
> Signed-off-by: Alex Deucher <alexdeucher at gmail.com>
> Cc: stable at kernel.org
> ---
> drivers/gpu/drm/radeon/evergreen.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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:
> --
> 1.7.1.1
Reviewed-by: Matt Turner <mattst88 at gmail.com>
More information about the dri-devel
mailing list