diff options
author | Cihangir Akturk <cakturk@gmail.com> | 2017-08-03 14:58:16 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-15 14:46:12 -0400 |
commit | f62facc2eb78ebbedae70e394ac034ab9407a244 (patch) | |
tree | e78fda8410148279d813a9b5ecf77f82e997459b /drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | |
parent | d45aec0536d4180bc6e9a79f5342bcf0e4f9b660 (diff) | |
download | linux-f62facc2eb78ebbedae70e394ac034ab9407a244.tar.gz linux-f62facc2eb78ebbedae70e394ac034ab9407a244.tar.bz2 linux-f62facc2eb78ebbedae70e394ac034ab9407a244.zip |
drm/amdgpu: switch to drm_*{get,put} helpers
drm_*_reference() and drm_*_unreference() functions are just
compatibility alias for drm_*_get() and drm_*_put() and should not be
used by new code. So convert all users of compatibility functions to use
the new APIs.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c index ccd7697792ab..75c6107eaccf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c @@ -136,7 +136,7 @@ static int amdgpu_bo_list_set(struct amdgpu_device *adev, } bo = amdgpu_bo_ref(gem_to_amdgpu_bo(gobj)); - drm_gem_object_unreference_unlocked(gobj); + drm_gem_object_put_unlocked(gobj); usermm = amdgpu_ttm_tt_get_usermm(bo->tbo.ttm); if (usermm) { |