summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-08-22 11:31:32 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-22 15:44:41 -0400
commitbc87e8989ddf2f74ff2c988a25e4a81e559a5c30 (patch)
treeb8c45cecf50e3e3bb8967952de9f5047de60683f /drivers/gpu/nvgpu/gk20a/mm_gk20a.c
parent587666bd6cbb60e52698052c2b5c4a74f2165ecd (diff)
gpu: nvgpu: Remove support for old kernel version
Remove support for pre-4.4 kernels. This allows deleting the checks for kernel version, and usage of linux/version.h. Change-Id: I4d6cb30512ea164d27549f4f4d096e5931bb1379 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1543499 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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