diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/therm_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/therm_gp106.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/therm_gp106.c b/drivers/gpu/nvgpu/gp106/therm_gp106.c index 4be8e6cd..4ec43293 100644 --- a/drivers/gpu/nvgpu/gp106/therm_gp106.c +++ b/drivers/gpu/nvgpu/gp106/therm_gp106.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #ifdef CONFIG_DEBUG_FS | 19 | #ifdef CONFIG_DEBUG_FS |
20 | #include <linux/debugfs.h> | 20 | #include <linux/debugfs.h> |
21 | #include "gk20a/platform_gk20a.h" | ||
22 | #include "common/linux/os_linux.h" | 21 | #include "common/linux/os_linux.h" |
23 | #endif | 22 | #endif |
24 | 23 | ||
@@ -72,11 +71,11 @@ DEFINE_SIMPLE_ATTRIBUTE(therm_ctrl_fops, therm_get_internal_sensor_curr_temp, NU | |||
72 | 71 | ||
73 | void gp106_therm_debugfs_init(struct gk20a *g) | 72 | void gp106_therm_debugfs_init(struct gk20a *g) |
74 | { | 73 | { |
75 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 74 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
76 | struct dentry *dbgentry; | 75 | struct dentry *dbgentry; |
77 | 76 | ||
78 | dbgentry = debugfs_create_file( | 77 | dbgentry = debugfs_create_file( |
79 | "temp", S_IRUGO, platform->debugfs, g, &therm_ctrl_fops); | 78 | "temp", S_IRUGO, l->debugfs, g, &therm_ctrl_fops); |
80 | if (!dbgentry) | 79 | if (!dbgentry) |
81 | nvgpu_err(g, "debugfs entry create failed for therm_curr_temp"); | 80 | nvgpu_err(g, "debugfs entry create failed for therm_curr_temp"); |
82 | } | 81 | } |