diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2017-08-06 17:41:07 +0200 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2017-08-16 20:20:00 +0200 |
commit | dec844bceaa345ff58455fddb578f6b55e3b4578 (patch) | |
tree | 10bc102d5beedd30fd1500fb511448271ecc006d /drivers/gpu/drm/virtio/virtgpu_gem.c | |
parent | drm/bochs: Use the drm_driver.dumb_destroy default (diff) | |
download | linux-dec844bceaa345ff58455fddb578f6b55e3b4578.tar.xz linux-dec844bceaa345ff58455fddb578f6b55e3b4578.zip |
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 '')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_gem.c | 7 |
1 files changed, 0 insertions, 7 deletions
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: 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) |