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)
commitb3f13ec958a77497da76cc7a89d60b741b79ba22
tree9412c1aa79cf9e54deabf35fc2dd00e898ad0632
parent6c19787e10b1bb99abbc3d257156c22bea5ca5b1
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