drm/prime: Introduce drm_gem_prime_import_dev
authorLaura Abbott <labbott@redhat.com>
Thu, 4 May 2017 18:45:47 +0000 (11:45 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 May 2017 07:39:13 +0000 (09:39 +0200)
commit7e491583dfec02d0b24990e603b7c5ec894dccd9
tree54056b15ad24bbdfb43efaeb315450d2cd2277af
parente2aff44868ae60eccae806d3751077155675c2a4
drm/prime: Introduce drm_gem_prime_import_dev

The existing drm_gem_prime_import function uses the underlying
struct device of a drm_device for attaching to a dma_buf. Some drivers
(notably vgem) may not have an underlying device structure. Offer
an alternate function to attach using any available device structure.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1493923548-20878-3-git-send-email-labbott@redhat.com
drivers/gpu/drm/drm_prime.c
include/drm/drm_prime.h