diff options
author | Christian König <christian.koenig@amd.com> | 2015-10-22 15:16:22 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-10-30 06:58:22 +0100 |
commit | 6ef68c17d40e1e7e291ca513627a0d2a13ae095f (patch) | |
tree | ad475374dbe1d1ba05889646bec77575ac584254 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | drm/amdgpu: use common fence for sync (diff) | |
download | linux-6ef68c17d40e1e7e291ca513627a0d2a13ae095f.tar.xz linux-6ef68c17d40e1e7e291ca513627a0d2a13ae095f.zip |
drm/amdgpu: remove amdgpu_fence_ref/unref
Just move the remaining users to fence_put/get.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index aad4c1c69448..e65987743871 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c @@ -95,7 +95,8 @@ void amdgpu_ib_free(struct amdgpu_device *adev, struct amdgpu_ib *ib) { amdgpu_sync_free(adev, &ib->sync, &ib->fence->base); amdgpu_sa_bo_free(adev, &ib->sa_bo, &ib->fence->base); - amdgpu_fence_unref(&ib->fence); + if (ib->fence) + fence_put(&ib->fence->base); } /** |