diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 00892e98..d95a2cde 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/dma-mapping.h> | 21 | #include <linux/dma-mapping.h> |
22 | #include <linux/dma-attrs.h> | 22 | #include <linux/dma-attrs.h> |
23 | #include <linux/lcm.h> | 23 | #include <linux/lcm.h> |
24 | #include <linux/fdtable.h> | 24 | #include <linux/platform/tegra/tegra_fd.h> |
25 | #include <uapi/linux/nvgpu.h> | 25 | #include <uapi/linux/nvgpu.h> |
26 | #include <trace/events/gk20a.h> | 26 | #include <trace/events/gk20a.h> |
27 | 27 | ||
@@ -1874,7 +1874,7 @@ int gk20a_vidmem_buf_alloc(struct gk20a *g, size_t bytes) | |||
1874 | goto err_bfree; | 1874 | goto err_bfree; |
1875 | } | 1875 | } |
1876 | 1876 | ||
1877 | fd = __alloc_fd(current->files, 1024, sysctl_nr_open, O_RDWR); | 1877 | fd = tegra_alloc_fd(current->files, 1024, O_RDWR); |
1878 | if (fd < 0) { | 1878 | if (fd < 0) { |
1879 | /* ->release frees what we have done */ | 1879 | /* ->release frees what we have done */ |
1880 | dma_buf_put(buf->dmabuf); | 1880 | dma_buf_put(buf->dmabuf); |