diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 84bf20b8..5ee90440 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include "fecs_trace_gk20a.h" | 27 | #include "fecs_trace_gk20a.h" |
28 | #include "gk20a.h" | 28 | #include "gk20a.h" |
29 | #include "gr_gk20a.h" | 29 | #include "gr_gk20a.h" |
30 | #include "platform_gk20a.h" | ||
31 | #include "common/linux/os_linux.h" | 30 | #include "common/linux/os_linux.h" |
32 | 31 | ||
33 | #include <nvgpu/log.h> | 32 | #include <nvgpu/log.h> |
@@ -537,21 +536,21 @@ DEFINE_SIMPLE_ATTRIBUTE(gk20a_fecs_trace_debugfs_write_fops, | |||
537 | 536 | ||
538 | static void gk20a_fecs_trace_debugfs_init(struct gk20a *g) | 537 | static void gk20a_fecs_trace_debugfs_init(struct gk20a *g) |
539 | { | 538 | { |
540 | struct gk20a_platform *plat = dev_get_drvdata(dev_from_gk20a(g)); | 539 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
541 | 540 | ||
542 | debugfs_create_file("ctxsw_trace_read", 0600, plat->debugfs, g, | 541 | debugfs_create_file("ctxsw_trace_read", 0600, l->debugfs, g, |
543 | &gk20a_fecs_trace_debugfs_read_fops); | 542 | &gk20a_fecs_trace_debugfs_read_fops); |
544 | debugfs_create_file("ctxsw_trace_write", 0600, plat->debugfs, g, | 543 | debugfs_create_file("ctxsw_trace_write", 0600, l->debugfs, g, |
545 | &gk20a_fecs_trace_debugfs_write_fops); | 544 | &gk20a_fecs_trace_debugfs_write_fops); |
546 | debugfs_create_file("ctxsw_trace_ring", 0600, plat->debugfs, g, | 545 | debugfs_create_file("ctxsw_trace_ring", 0600, l->debugfs, g, |
547 | &gk20a_fecs_trace_debugfs_ring_fops); | 546 | &gk20a_fecs_trace_debugfs_ring_fops); |
548 | } | 547 | } |
549 | 548 | ||
550 | static void gk20a_fecs_trace_debugfs_cleanup(struct gk20a *g) | 549 | static void gk20a_fecs_trace_debugfs_cleanup(struct gk20a *g) |
551 | { | 550 | { |
552 | struct gk20a_platform *plat = dev_get_drvdata(dev_from_gk20a(g)); | 551 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
553 | 552 | ||
554 | debugfs_remove_recursive(plat->debugfs); | 553 | debugfs_remove_recursive(l->debugfs); |
555 | } | 554 | } |
556 | 555 | ||
557 | #else | 556 | #else |