summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug_gr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug_gr.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/debug_gr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug_gr.c b/drivers/gpu/nvgpu/common/linux/debug_gr.c
index 732c2a7e..d54c6d63 100644
--- a/drivers/gpu/nvgpu/common/linux/debug_gr.c
+++ b/drivers/gpu/nvgpu/common/linux/debug_gr.c
@@ -13,18 +13,17 @@
13 */ 13 */
14 14
15#include "debug_gr.h" 15#include "debug_gr.h"
16#include "gk20a/platform_gk20a.h"
17#include "os_linux.h" 16#include "os_linux.h"
18 17
19#include <linux/debugfs.h> 18#include <linux/debugfs.h>
20 19
21int gr_gk20a_debugfs_init(struct gk20a *g) 20int gr_gk20a_debugfs_init(struct gk20a *g)
22{ 21{
23 struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); 22 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
24 23
25 g->debugfs_gr_default_attrib_cb_size = 24 l->debugfs_gr_default_attrib_cb_size =
26 debugfs_create_u32("gr_default_attrib_cb_size", 25 debugfs_create_u32("gr_default_attrib_cb_size",
27 S_IRUGO|S_IWUSR, platform->debugfs, 26 S_IRUGO|S_IWUSR, l->debugfs,
28 &g->gr.attrib_cb_default_size); 27 &g->gr.attrib_cb_default_size);
29 28
30 return 0; 29 return 0;