mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
UPSTREAM: drm/virtio: Replace ttm_bo_reference with ttm_bo_get
The function ttm_bo_get acquires a reference on a TTM buffer object. The
function's name is more aligned to the Linux kernel convention of naming
ref-counting function _get and _put.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20180731062127.10131-2-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 94f4a12707)
Signed-off-by: Greg Hartman <ghartman@google.com>
BUG: 139386237
Change-Id: I6a34c03e605780411140b895e5b84dcb794cea3d
This commit is contained in:
committed by
Alistair Delva
parent
4ad5dc30b5
commit
aff367cb6a
@@ -372,7 +372,7 @@ int virtgpu_gem_prime_mmap(struct drm_gem_object *obj,
|
||||
static inline struct virtio_gpu_object*
|
||||
virtio_gpu_object_ref(struct virtio_gpu_object *bo)
|
||||
{
|
||||
ttm_bo_reference(&bo->tbo);
|
||||
ttm_bo_get(&bo->tbo);
|
||||
return bo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user