]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: add virtio_gpu_object_detach() function
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 29 Aug 2018 12:20:25 +0000 (14:20 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Sep 2018 06:26:25 +0000 (08:26 +0200)
commit8c2f447167728a352dff87e9078043c0cfeb1983
tree9412c1aa79cf9e54deabf35fc2dd00e898ad0632
parent093ef6445d881af4efdb936026feec72f0b806a7
drm/virtio: add virtio_gpu_object_detach() function

The new function balances virtio_gpu_object_attach().

Also make virtio_gpu_cmd_resource_inval_backing() static and switch
call sites to the new virtio_gpu_object_attach() function.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180829122026.27012-2-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_fb.c
drivers/gpu/drm/virtio/virtgpu_ttm.c
drivers/gpu/drm/virtio/virtgpu_vq.c