drm: use common drm_gem_dmabuf_release in i915/exynos drivers 14/35314/1
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 22:02:30 +0000 (00:02 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 12 Feb 2015 02:26:06 +0000 (11:26 +0900)
commit647f620b1bd55f1f3171160b7ded753367e1eeed
tree744c0a0023f80d4a63ecb9fad7f53941d0cca886
parent5b0bb04e14723bb3631eafc6b20cb2fba70ed673
drm: use common drm_gem_dmabuf_release in i915/exynos drivers

Note that this is slightly tricky since both drivers store their
native objects in dma_buf->priv. But both also embed the base
drm_gem_object at the first position, so the implicit cast is ok.

To use the release helper we need to export it, too.

Change-Id: I37e9ffec79c90304d444ae9b6c47346f125feb49
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
[This patch is necessary for commit 7f663e197afa drm/prime: proper locking+refcounting for obj->dma_buf link]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/gpu/drm/drm_prime.c
drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
drivers/gpu/drm/i915/i915_gem_dmabuf.c
include/drm/drmP.h