drm/exynos: fix missed calling of drm_prime_gem_destroy()
authorJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 16 Sep 2015 05:14:54 +0000 (14:14 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 30 Sep 2015 07:39:40 +0000 (16:39 +0900)
commit7c93537a47e15e04064158ccdbe28f88ee61170c
tree6d1852a4170dda62a3382a9857911b6d50196626
parent5e0fb1f9eb754eed8432392bfdc100ef295676cd
drm/exynos: fix missed calling of drm_prime_gem_destroy()

When obj->import_attach is existed, code calling drm_prime_gem_destroy()
was removed from commit 67e93c808b48 ("drm/exynos: stop copying sg
table"), and it's a fault.

The drm_prime_gem_destroy() is cleanup function which GEM drivers need
to call when they use drm_gem_prime_import() to import dma-bufs, so
exynos-drm driver using drm_gem_prime_import() needs calling
drm_prime_gem_destroy().

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
drivers/gpu/drm/exynos/exynos_drm_gem.h