mirror of https://gitee.com/openkylin/linux.git
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
This commit is contained in:
parent
9b5b5ca5ab
commit
dec844bcea
|
@ -122,7 +122,6 @@ static struct drm_driver driver = {
|
||||||
|
|
||||||
.dumb_create = virtio_gpu_mode_dumb_create,
|
.dumb_create = virtio_gpu_mode_dumb_create,
|
||||||
.dumb_map_offset = virtio_gpu_mode_dumb_mmap,
|
.dumb_map_offset = virtio_gpu_mode_dumb_mmap,
|
||||||
.dumb_destroy = virtio_gpu_mode_dumb_destroy,
|
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_FS)
|
#if defined(CONFIG_DEBUG_FS)
|
||||||
.debugfs_init = virtio_gpu_debugfs_init,
|
.debugfs_init = virtio_gpu_debugfs_init,
|
||||||
|
|
|
@ -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,
|
int virtio_gpu_mode_dumb_create(struct drm_file *file_priv,
|
||||||
struct drm_device *dev,
|
struct drm_device *dev,
|
||||||
struct drm_mode_create_dumb *args);
|
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,
|
int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv,
|
||||||
struct drm_device *dev,
|
struct drm_device *dev,
|
||||||
uint32_t handle, uint64_t *offset_p);
|
uint32_t handle, uint64_t *offset_p);
|
||||||
|
|
|
@ -118,13 +118,6 @@ int virtio_gpu_mode_dumb_create(struct drm_file *file_priv,
|
||||||
return ret;
|
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,
|
int virtio_gpu_mode_dumb_mmap(struct drm_file *file_priv,
|
||||||
struct drm_device *dev,
|
struct drm_device *dev,
|
||||||
uint32_t handle, uint64_t *offset_p)
|
uint32_t handle, uint64_t *offset_p)
|
||||||
|
|
Loading…
Reference in New Issue