summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/cde_gk20a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
index 391f6612..f0927692 100644
--- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
@@ -18,7 +18,9 @@
18 18
19#include <linux/dma-mapping.h> 19#include <linux/dma-mapping.h>
20#include <linux/fs.h> 20#include <linux/fs.h>
21#ifdef CONFIG_DEBUG_FS
21#include <linux/debugfs.h> 22#include <linux/debugfs.h>
23#endif
22#include <linux/dma-buf.h> 24#include <linux/dma-buf.h>
23 25
24#include <trace/events/gk20a.h> 26#include <trace/events/gk20a.h>
@@ -1662,6 +1664,7 @@ int gk20a_mark_compressible_write(struct gk20a *g, u32 buffer_fd,
1662 return 0; 1664 return 0;
1663} 1665}
1664 1666
1667#ifdef CONFIG_DEBUG_FS
1665static ssize_t gk20a_cde_reload_write(struct file *file, 1668static ssize_t gk20a_cde_reload_write(struct file *file,
1666 const char __user *userbuf, size_t count, loff_t *ppos) 1669 const char __user *userbuf, size_t count, loff_t *ppos)
1667{ 1670{
@@ -1694,3 +1697,4 @@ void gk20a_cde_debugfs_init(struct device *dev)
1694 debugfs_create_file("reload_cde_firmware", S_IWUSR, platform->debugfs, 1697 debugfs_create_file("reload_cde_firmware", S_IWUSR, platform->debugfs,
1695 g, &gk20a_cde_reload_fops); 1698 g, &gk20a_cde_reload_fops);
1696} 1699}
1700#endif