drm/i915: Use the drm_driver.dumb_destroy default
authorNoralf Trønnes <noralf@tronnes.org>
Sun, 6 Aug 2017 15:41:00 +0000 (17:41 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Tue, 8 Aug 2017 10:33:04 +0000 (12:33 +0200)
drm_gem_dumb_destroy() is the drm_driver.dumb_destroy default,
so no need to set it.

Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.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-12-git-send-email-noralf@tronnes.org
drivers/gpu/drm/i915/i915_drv.c

index d310d8245dca6adff2bdfe3f0b35b1ef97b38efc..4c96a721448291e4b1e263c925709a9d4c3b8b41 100644 (file)
@@ -2755,7 +2755,6 @@ static struct drm_driver driver = {
 
        .dumb_create = i915_gem_dumb_create,
        .dumb_map_offset = i915_gem_mmap_gtt,
-       .dumb_destroy = drm_gem_dumb_destroy,
        .ioctls = i915_ioctls,
        .num_ioctls = ARRAY_SIZE(i915_ioctls),
        .fops = &i915_driver_fops,