diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/mclk_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/mclk_gp106.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp106/mclk_gp106.c b/drivers/gpu/nvgpu/gp106/mclk_gp106.c index 47ba4ea9..74c8aef3 100644 --- a/drivers/gpu/nvgpu/gp106/mclk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/mclk_gp106.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #include "gk20a/gk20a.h" | 19 | #include "gk20a/gk20a.h" |
20 | #ifdef CONFIG_DEBUG_FS | 20 | #ifdef CONFIG_DEBUG_FS |
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 | #include "gp106/mclk_gp106.h" | 23 | #include "gp106/mclk_gp106.h" |
@@ -3495,9 +3494,8 @@ static const struct file_operations mclk_switch_stats_fops = { | |||
3495 | 3494 | ||
3496 | static int mclk_debugfs_init(struct gk20a *g) | 3495 | static int mclk_debugfs_init(struct gk20a *g) |
3497 | { | 3496 | { |
3498 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 3497 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
3499 | 3498 | struct dentry *gpu_root = l->debugfs; | |
3500 | struct dentry *gpu_root = platform->debugfs; | ||
3501 | struct dentry *d; | 3499 | struct dentry *d; |
3502 | 3500 | ||
3503 | gk20a_dbg(gpu_dbg_info, "g=%p", g); | 3501 | gk20a_dbg(gpu_dbg_info, "g=%p", g); |