aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-08-06 11:41:07 -0400
committerNoralf Trønnes <noralf@tronnes.org>2017-08-16 14:20:00 -0400
commitdec844bceaa345ff58455fddb578f6b55e3b4578 (patch)
tree10bc102d5beedd30fd1500fb511448271ecc006d /drivers/gpu/drm
parent9b5b5ca5abb24c0c1198e77a8b464d248b6e2507 (diff)
drm/virtio: Use the drm_driver.dumb_destroy default
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
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_drv.c1
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_drv.h3
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_gem.c7
3 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c
index 63d35c7e416c..49a3d8d5a249 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.c
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.c
@@ -122,7 +122,6 @@ static struct drm_driver driver = {
122 122
123 .dumb_create = virtio_gpu_mode_dumb_create, 123 .dumb_create = virtio_gpu_mode_dumb_create,
124 .dumb_map_offset = virtio_gpu_mode_dumb_mmap, 124 .dumb_map_offset = virtio_gpu_mode_dumb_mmap,
125 .dumb_destroy = virtio_gpu_mode_dumb_destroy,
126 125
127#if defined(CONFIG_DEBUG_FS) 126#if defined(CONFIG_DEBUG_FS)
128 .debugfs_init = virtio_gpu_debugfs_init, 127 .debugfs_init = virtio_gpu_debugfs_init,
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h
index 3a66abb8fd50..da2fb585fea4 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.h
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.h
@@ -236,9 +236,6 @@ struct virtio_gpu_object *virtio_gpu_alloc_object(struct drm_device *dev,
236int virtio_gpu_mode_dumb_create(struct drm_file *file_priv, 236int virtio_gpu_mode_dumb_create(struct drm_file *file_priv,
237 struct drm_device *dev, 237 struct drm_device *dev,
238 struct drm_mode_create_dumb *args); 238 struct drm_mode_create_dumb *args);
239int virtio_gpu_mode_dumb_destroy(struct drm_file *file_priv,
240 struct drm_device *dev,
241 uint32_t handle);
242int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv, 239int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv,
243 struct drm_device *dev, 240 struct drm_device *dev,
244 uint32_t handle, uint64_t *offset_p); 241 uint32_t handle, uint64_t *offset_p);
diff --git a/drivers/gpu/drm/virtio/virtgpu_gem.c b/drivers/gpu/drm/virtio/virtgpu_gem.c
index cc025d8fbe19..72ad7b103448 100644
--- a/drivers/gpu/drm/virtio/virtgpu_gem.c
+++ b/drivers/gpu/drm/virtio/virtgpu_gem.c
@@ -118,13 +118,6 @@ fail:
118 return ret; 118 return ret;
119} 119}
120 120
121int virtio_gpu_mode_dumb_destroy(struct drm_file *file_priv,
122 struct drm_device *dev,
123 uint32_t handle)
124{
125 return drm_gem_handle_delete(file_priv, handle);
126}
127
128int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv, 121int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv,
129 struct drm_device *dev, 122 struct drm_device *dev,
130 uint32_t handle, uint64_t *offset_p) 123 uint32_t handle, uint64_t *offset_p)