diff options
author | Christian König <christian.koenig@amd.com> | 2014-02-18 14:52:33 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2014-02-18 17:49:19 +0100 |
commit | ff212f25feb44a915ce9c0144faef7fae27a6e61 (patch) | |
tree | 4cfdebae7d47c5504d087ef8950e068a426f1270 /drivers/gpu/drm/radeon/uvd_v1_0.c | |
parent | a1d6f97c8cfa7c3554d0391c0b16505d1d97f380 (diff) | |
download | op-kernel-dev-ff212f25feb44a915ce9c0144faef7fae27a6e61.zip op-kernel-dev-ff212f25feb44a915ce9c0144faef7fae27a6e61.tar.gz |
drm/radeon: drop drivers copy of the rptr
In all cases where it really matters we are using the read functions anyway.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/uvd_v1_0.c')
-rw-r--r-- | drivers/gpu/drm/radeon/uvd_v1_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/uvd_v1_0.c b/drivers/gpu/drm/radeon/uvd_v1_0.c index d4a68af..0a243f0 100644 --- a/drivers/gpu/drm/radeon/uvd_v1_0.c +++ b/drivers/gpu/drm/radeon/uvd_v1_0.c @@ -262,7 +262,7 @@ int uvd_v1_0_start(struct radeon_device *rdev) /* Initialize the ring buffer's read and write pointers */ WREG32(UVD_RBC_RB_RPTR, 0x0); - ring->wptr = ring->rptr = RREG32(UVD_RBC_RB_RPTR); + ring->wptr = RREG32(UVD_RBC_RB_RPTR); WREG32(UVD_RBC_RB_WPTR, ring->wptr); /* set the ring address */ |