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. 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>
Showing
- drivers/gpu/drm/drm_prime.c 2 additions, 1 deletiondrivers/gpu/drm/drm_prime.c
- drivers/gpu/drm/exynos/exynos_drm_dmabuf.c 1 addition, 22 deletionsdrivers/gpu/drm/exynos/exynos_drm_dmabuf.c
- drivers/gpu/drm/i915/i915_gem_dmabuf.c 1 addition, 12 deletionsdrivers/gpu/drm/i915/i915_gem_dmabuf.c
- include/drm/drmP.h 1 addition, 0 deletionsinclude/drm/drmP.h
Please register or sign in to comment