summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index e21be1e5..2ce78cef 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -1056,7 +1056,6 @@ static const struct dma_buf_ops gk20a_vidbuf_ops = {
1056 1056
1057static struct dma_buf *gk20a_vidbuf_export(struct gk20a_vidmem_buf *buf) 1057static struct dma_buf *gk20a_vidbuf_export(struct gk20a_vidmem_buf *buf)
1058{ 1058{
1059#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
1060 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); 1059 DEFINE_DMA_BUF_EXPORT_INFO(exp_info);
1061 1060
1062 exp_info.priv = buf; 1061 exp_info.priv = buf;
@@ -1065,10 +1064,6 @@ static struct dma_buf *gk20a_vidbuf_export(struct gk20a_vidmem_buf *buf)
1065 exp_info.flags = O_RDWR; 1064 exp_info.flags = O_RDWR;
1066 1065
1067 return dma_buf_export(&exp_info); 1066 return dma_buf_export(&exp_info);
1068#else
1069 return dma_buf_export(buf, &gk20a_vidbuf_ops, buf->mem->size,
1070 O_RDWR, NULL);
1071#endif
1072} 1067}
1073#endif 1068#endif
1074 1069