]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/exynos: remove call to drm_gem_free_mmap_offset()
authorJoonyoung Shim <jy0922.shim@samsung.com>
Fri, 25 Sep 2015 09:10:32 +0000 (18:10 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 30 Sep 2015 07:39:41 +0000 (16:39 +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>
drivers/gpu/drm/exynos/exynos_drm_gem.c

index 3df1e0e81014783e90eaa5a11a437eb487d61c8f..5c94863a4ca640ac77732b64cb2e502ff32a5e99 100644 (file)
@@ -152,8 +152,6 @@ void exynos_drm_gem_destroy(struct exynos_drm_gem_obj *exynos_gem_obj)
        else
                exynos_drm_free_buf(exynos_gem_obj);
 
-       drm_gem_free_mmap_offset(obj);
-
        /* release file pointer to gem object. */
        drm_gem_object_release(obj);
 
@@ -530,7 +528,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;
 }