drm/virtio: Use the drm_driver.dumb_destroy default
authorNoralf Trønnes <noralf@tronnes.org>
Sun, 6 Aug 2017 15:41:07 +0000 (17:41 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 16 Aug 2017 18:20:00 +0000 (20:20 +0200)
virtio_gpu_mode_dumb_destroy() is the same as drm_gem_dumb_destroy()
which is the drm_driver.dumb_destroy default, so no need to set it.

Cc: David Airlie <airlied@linux.ie>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1502034068-51384-19-git-send-email-noralf@tronnes.org
drivers/gpu/drm/virtio/virtgpu_drv.c
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_gem.c

index 63d35c7e416c4fdd6b45c44e9c2fbbb177b339b3..49a3d8d5a2496d07a5e1cb3d8192ce93d264dace 100644 (file)
@@ -122,7 +122,6 @@ static struct drm_driver driver = {
 
        .dumb_create = virtio_gpu_mode_dumb_create,
        .dumb_map_offset = virtio_gpu_mode_dumb_mmap,
-       .dumb_destroy = virtio_gpu_mode_dumb_destroy,
 
 #if defined(CONFIG_DEBUG_FS)
        .debugfs_init = virtio_gpu_debugfs_init,
index 3a66abb8fd50b8c983c6b90f1d739883f8c7b363..da2fb585fea4f49c140e3d0ed500bd1088d9ec39 100644 (file)
@@ -236,9 +236,6 @@ struct virtio_gpu_object *virtio_gpu_alloc_object(struct drm_device *dev,
 int virtio_gpu_mode_dumb_create(struct drm_file *file_priv,
                                struct drm_device *dev,
                                struct drm_mode_create_dumb *args);
-int virtio_gpu_mode_dumb_destroy(struct drm_file *file_priv,
-                                struct drm_device *dev,
-                                uint32_t handle);
 int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv,
                              struct drm_device *dev,
                              uint32_t handle, uint64_t *offset_p);
index cc025d8fbe195096a62a2d426709ba2bcaf28cc5..72ad7b103448b826a85db0645c66fa89c04533a0 100644 (file)
@@ -118,13 +118,6 @@ fail:
        return ret;
 }
 
-int virtio_gpu_mode_dumb_destroy(struct drm_file *file_priv,
-                                struct drm_device *dev,
-                                uint32_t handle)
-{
-       return drm_gem_handle_delete(file_priv, handle);
-}
-
 int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv,
                              struct drm_device *dev,
                              uint32_t handle, uint64_t *offset_p)