projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
233c2b7
)
drm/virtio: Replace ttm_bo_reference with ttm_bo_get
author
Thomas Zimmermann
<tzimmermann@suse.de>
Tue, 31 Jul 2018 06:21:26 +0000
(08:21 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 30 Aug 2018 07:41:02 +0000
(09:41 +0200)
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>
drivers/gpu/drm/virtio/virtgpu_drv.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/virtio/virtgpu_drv.h
b/drivers/gpu/drm/virtio/virtgpu_drv.h
index 65605e207bbe88028c76a19fb2e4eb1e4d216401..59182975ce16c4684e0656c7503110af2fefd2ec 100644
(file)
--- a/
drivers/gpu/drm/virtio/virtgpu_drv.h
+++ b/
drivers/gpu/drm/virtio/virtgpu_drv.h
@@
-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;
}