drm/exynos: remove call to drm_gem_free_mmap_offset()
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 22 Dec 2015 00:35:55 +0000 (09:35 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 31 Mar 2016 07:59:37 +0000 (16:59 +0900)
The drm_gem_object_release() function already performs this cleanup,
so there is no reason to do it explicitly.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[jy0922.shim: Be backported from upstream]

Change-Id: I8dcac341340dd8dc31dbf528df2c537f22c6a701

drivers/gpu/drm/exynos/exynos_drm_gem.c

index a36b0ba61260f6c13f60ebc2e403dfb201801719..81fb8a5d6ae7c08fc54fe89fc85c573312a76403 100644 (file)
@@ -154,8 +154,6 @@ out:
        exynos_drm_fini_buf(obj->dev, buf);
        exynos_gem_obj->buffer = NULL;
 
-       drm_gem_free_mmap_offset(obj);
-
        /* release file pointer to gem object. */
        drm_gem_object_release(obj);
 
@@ -654,7 +652,6 @@ int exynos_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
 
 err_close_vm:
        drm_gem_vm_close(vma);
-       drm_gem_free_mmap_offset(obj);
 
        return ret;
 }