diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-07-27 16:31:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-04 12:24:02 -0400 |
commit | 972c42fddf13f658242a4f92124e5fcf194672b3 (patch) | |
tree | 8b679b522be90f8980fb05d2641fbb9eaca768d6 /drivers/gpu/nvgpu/clk/clk_arb.c | |
parent | b8efd9d04537d6129e2ce8b067417e46b0e7436f (diff) |
gpu: nvgpu: Move debugfs fields to os_linux
Move all Linux specific debugfs dentry fields to struct
nvgpu_os_linux.
JIRA NVGPU-62
Change-Id: I615620005f5d042943dd2e478c1629bcc912c550
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1528263
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_arb.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c index 2cb7a42a..3caa5409 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include "clk/clk_arb.h" | 32 | #include "clk/clk_arb.h" |
33 | 33 | ||
34 | #ifdef CONFIG_DEBUG_FS | 34 | #ifdef CONFIG_DEBUG_FS |
35 | #include "gk20a/platform_gk20a.h" | ||
36 | #include "common/linux/os_linux.h" | 35 | #include "common/linux/os_linux.h" |
37 | #endif | 36 | #endif |
38 | 37 | ||
@@ -2077,9 +2076,8 @@ static const struct file_operations nvgpu_clk_arb_stats_fops = { | |||
2077 | 2076 | ||
2078 | static int nvgpu_clk_arb_debugfs_init(struct gk20a *g) | 2077 | static int nvgpu_clk_arb_debugfs_init(struct gk20a *g) |
2079 | { | 2078 | { |
2080 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 2079 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
2081 | 2080 | struct dentry *gpu_root = l->debugfs; | |
2082 | struct dentry *gpu_root = platform->debugfs; | ||
2083 | struct dentry *d; | 2081 | struct dentry *d; |
2084 | 2082 | ||
2085 | gk20a_dbg(gpu_dbg_info, "g=%p", g); | 2083 | gk20a_dbg(gpu_dbg_info, "g=%p", g); |