Commit 30600a9092dc44694fbb4d0c3fa796e977fd5c96
1 parent
33b559630c
Exists in
master
and in
20 other branches
drm/msm: use drm_gem_dumb_destroy helper
Signed-off-by: Rob Clark <robdclark@gmail.com>
Showing 2 changed files with 1 additions and 8 deletions Side-by-side Diff
drivers/gpu/drm/msm/msm_drv.c
... | ... | @@ -697,7 +697,7 @@ |
697 | 697 | .gem_vm_ops = &vm_ops, |
698 | 698 | .dumb_create = msm_gem_dumb_create, |
699 | 699 | .dumb_map_offset = msm_gem_dumb_map_offset, |
700 | - .dumb_destroy = msm_gem_dumb_destroy, | |
700 | + .dumb_destroy = drm_gem_dumb_destroy, | |
701 | 701 | #ifdef CONFIG_DEBUG_FS |
702 | 702 | .debugfs_init = msm_debugfs_init, |
703 | 703 | .debugfs_cleanup = msm_debugfs_cleanup, |
drivers/gpu/drm/msm/msm_gem.c
... | ... | @@ -319,13 +319,6 @@ |
319 | 319 | MSM_BO_SCANOUT | MSM_BO_WC, &args->handle); |
320 | 320 | } |
321 | 321 | |
322 | -int msm_gem_dumb_destroy(struct drm_file *file, struct drm_device *dev, | |
323 | - uint32_t handle) | |
324 | -{ | |
325 | - /* No special work needed, drop the reference and see what falls out */ | |
326 | - return drm_gem_handle_delete(file, handle); | |
327 | -} | |
328 | - | |
329 | 322 | int msm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, |
330 | 323 | uint32_t handle, uint64_t *offset) |
331 | 324 | { |