aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_gem.c5
-rw-r--r--include/drm/drmP.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index 4b3c533be859..0a5a0ca0a52e 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -191,11 +191,6 @@ EXPORT_SYMBOL(drm_gem_object_alloc);
191static void 191static void
192drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp) 192drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp)
193{ 193{
194 if (obj->import_attach) {
195 drm_prime_remove_buf_handle(&filp->prime,
196 obj->import_attach->dmabuf);
197 }
198
199 /* 194 /*
200 * Note: obj->dma_buf can't disappear as long as we still hold a 195 * Note: obj->dma_buf can't disappear as long as we still hold a
201 * handle reference in obj->handle_count. 196 * handle reference in obj->handle_count.
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index a95db49b3f9e..ce1e6bd30306 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -687,6 +687,11 @@ struct drm_gem_object {
687 * 687 *
688 * The driver's ->gem_free_object callback is responsible for cleaning 688 * The driver's ->gem_free_object callback is responsible for cleaning
689 * up the dma_buf attachment and references acquired at import time. 689 * up the dma_buf attachment and references acquired at import time.
690 *
691 * Note that the drm gem/prime core does not depend upon drivers setting
692 * this field any more. So for drivers where this doesn't make sense
693 * (e.g. virtual devices or a displaylink behind an usb bus) they can
694 * simply leave it as NULL.
690 */ 695 */
691 struct dma_buf_attachment *import_attach; 696 struct dma_buf_attachment *import_attach;
692}; 697};