diff options
author | Cihangir Akturk <cakturk@gmail.com> | 2017-08-03 07:58:16 -0400 |
---|---|---|
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_fb.c | |
parent | d45aec0536d4180bc6e9a79f5342bcf0e4f9b660 (diff) |
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_fb.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index cd95574705ee..9afa9c097e1f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |||
@@ -118,7 +118,7 @@ static void amdgpufb_destroy_pinned_object(struct drm_gem_object *gobj) | |||
118 | amdgpu_bo_unpin(abo); | 118 | amdgpu_bo_unpin(abo); |
119 | amdgpu_bo_unreserve(abo); | 119 | amdgpu_bo_unreserve(abo); |
120 | } | 120 | } |
121 | drm_gem_object_unreference_unlocked(gobj); | 121 | drm_gem_object_put_unlocked(gobj); |
122 | } | 122 | } |
123 | 123 | ||
124 | static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, | 124 | static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, |
@@ -280,7 +280,7 @@ out: | |||
280 | 280 | ||
281 | } | 281 | } |
282 | if (fb && ret) { | 282 | if (fb && ret) { |
283 | drm_gem_object_unreference_unlocked(gobj); | 283 | drm_gem_object_put_unlocked(gobj); |
284 | drm_framebuffer_unregister_private(fb); | 284 | drm_framebuffer_unregister_private(fb); |
285 | drm_framebuffer_cleanup(fb); | 285 | drm_framebuffer_cleanup(fb); |
286 | kfree(fb); | 286 | kfree(fb); |