diff options
| author | Christian König <[email protected]> | 2015-10-22 13:16:22 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2015-10-30 05:58:22 +0000 |
| commit | 6ef68c17d40e1e7e291ca513627a0d2a13ae095f (patch) | |
| tree | ad475374dbe1d1ba05889646bec77575ac584254 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | drm/amdgpu: use common fence for sync (diff) | |
| download | kernel-6ef68c17d40e1e7e291ca513627a0d2a13ae095f.tar.gz kernel-6ef68c17d40e1e7e291ca513627a0d2a13ae095f.zip | |
drm/amdgpu: remove amdgpu_fence_ref/unref
Just move the remaining users to fence_put/get.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
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); } /** |
