diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-12-14 15:39:40 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-12-31 04:25:45 -0500 |
commit | 08b710f85cb835114257fe60c9f0ca5610c8ac29 (patch) | |
tree | 14f776786a988525b6efb97deff633cf8ac6cd87 | |
parent | 74128a237eca99dbca6a8ca47f062b6791441221 (diff) |
drm: omapdrm: gem: Don't free mmap offset twice
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>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_gem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index b535fed491f5..c215feccf092 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c | |||
@@ -1319,8 +1319,6 @@ void omap_gem_free_object(struct drm_gem_object *obj) | |||
1319 | list_del(&omap_obj->mm_list); | 1319 | list_del(&omap_obj->mm_list); |
1320 | spin_unlock(&priv->list_lock); | 1320 | spin_unlock(&priv->list_lock); |
1321 | 1321 | ||
1322 | drm_gem_free_mmap_offset(obj); | ||
1323 | |||
1324 | /* this means the object is still pinned.. which really should | 1322 | /* this means the object is still pinned.. which really should |
1325 | * not happen. I think.. | 1323 | * not happen. I think.. |
1326 | */ | 1324 | */ |