drm: omapdrm: gem: Don't free mmap offset twice
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 14 Dec 2015 20:39:40 +0000 (22:39 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 31 Dec 2015 09:25:45 +0000 (11:25 +0200)
The drm_gem_free_mmap_offset() call in omap_gem_free_object() is
redundant as the same function is called from drm_gem_object_release().
Remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem.c

index b535fed491f5363e17cfc6364303d7a80847b63f..c215feccf0923f87c574e7d018f9620959e83dee 100644 (file)
@@ -1319,8 +1319,6 @@ void omap_gem_free_object(struct drm_gem_object *obj)
        list_del(&omap_obj->mm_list);
        spin_unlock(&priv->list_lock);
 
-       drm_gem_free_mmap_offset(obj);
-
        /* this means the object is still pinned.. which really should
         * not happen.  I think..
         */