summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/clk_gp106.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/clk_gp106.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c
index 105f8bd5..bcf95b01 100644
--- a/drivers/gpu/nvgpu/gp106/clk_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c
@@ -23,9 +23,6 @@
23#include <nvgpu/kmem.h> 23#include <nvgpu/kmem.h>
24 24
25#include "gk20a/gk20a.h" 25#include "gk20a/gk20a.h"
26#ifdef CONFIG_DEBUG_FS
27#include "gk20a/platform_gk20a.h"
28#endif
29#include "common/linux/os_linux.h" 26#include "common/linux/os_linux.h"
30 27
31#include "clk_gp106.h" 28#include "clk_gp106.h"
@@ -240,10 +237,10 @@ static int gp106_get_rate_show(void *data , u64 *val) {
240DEFINE_SIMPLE_ATTRIBUTE(get_rate_fops, gp106_get_rate_show, NULL, "%llu\n"); 237DEFINE_SIMPLE_ATTRIBUTE(get_rate_fops, gp106_get_rate_show, NULL, "%llu\n");
241 238
242 239
243static int clk_gp106_debugfs_init(struct gk20a *g) { 240static int clk_gp106_debugfs_init(struct gk20a *g)
244 struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); 241{
245 242 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
246 struct dentry *gpu_root = platform->debugfs; 243 struct dentry *gpu_root = l->debugfs;
247 struct dentry *clocks_root; 244 struct dentry *clocks_root;
248 struct dentry *d; 245 struct dentry *d;
249 unsigned int i; 246 unsigned int i;