vigs: change dma_buf_export() function prototype 37/67037/5
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Sun, 24 Apr 2016 09:28:48 +0000 (18:28 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 3 May 2016 08:36:37 +0000 (01:36 -0700)
Change-Id: I317db1b1c335947053f66cd031e906ce6736ee43
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
drivers/gpu/drm/vigs/vigs_dmabuf.c

index ba47bca..e1c3aea 100644 (file)
@@ -174,12 +174,16 @@ struct dma_buf *vigs_dmabuf_prime_export(struct drm_device *dev,
 {
     struct vigs_gem_object *vigs_gem = gem_to_vigs_gem(gem_obj);
 
+    DEFINE_DMA_BUF_EXPORT_INFO(exp_info);
+
     DRM_DEBUG_PRIME("enter");
 
-    return dma_buf_export(gem_obj,
-                          &vigs_dmabuf_ops,
-                          vigs_gem_size(vigs_gem),
-                          flags);
+    exp_info.ops = &vigs_dmabuf_ops;
+    exp_info.size = vigs_gem_size(vigs_gem);
+    exp_info.flags = flags;
+    exp_info.priv = gem_obj;
+
+    return dma_buf_export(&exp_info);
 }
 
 struct drm_gem_object *vigs_dmabuf_prime_import(struct drm_device *dev,