diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/xve_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/xve_gp106.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.c b/drivers/gpu/nvgpu/gp106/xve_gp106.c index 77641240..67b77048 100644 --- a/drivers/gpu/nvgpu/gp106/xve_gp106.c +++ b/drivers/gpu/nvgpu/gp106/xve_gp106.c | |||
@@ -22,10 +22,10 @@ | |||
22 | #include "gk20a/gk20a.h" | 22 | #include "gk20a/gk20a.h" |
23 | #include "gm206/bios_gm206.h" | 23 | #include "gm206/bios_gm206.h" |
24 | #include "gp106/xve_gp106.h" | 24 | #include "gp106/xve_gp106.h" |
25 | |||
26 | #ifdef CONFIG_DEBUG_FS | 25 | #ifdef CONFIG_DEBUG_FS |
27 | #include "gk20a/platform_gk20a.h" | 26 | #include "gk20a/platform_gk20a.h" |
28 | #endif | 27 | #endif |
28 | #include "common/linux/os_linux.h" | ||
29 | 29 | ||
30 | #include <nvgpu/bug.h> | 30 | #include <nvgpu/bug.h> |
31 | 31 | ||
@@ -607,12 +607,12 @@ int xve_sw_init_gp106(struct device *dev) | |||
607 | { | 607 | { |
608 | int err = -ENODEV; | 608 | int err = -ENODEV; |
609 | #ifdef CONFIG_DEBUG_FS | 609 | #ifdef CONFIG_DEBUG_FS |
610 | struct gk20a *g = get_gk20a(dev); | 610 | struct gk20a *g = gk20a_from_dev(dev); |
611 | struct gk20a_platform *plat = gk20a_get_platform(dev); | 611 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
612 | struct dentry *gpu_root = plat->debugfs; | 612 | struct dentry *gpu_root = l->debugfs; |
613 | 613 | ||
614 | g->debugfs_xve = debugfs_create_dir("xve", gpu_root); | 614 | l->debugfs_xve = debugfs_create_dir("xve", gpu_root); |
615 | if (IS_ERR_OR_NULL(g->debugfs_xve)) | 615 | if (IS_ERR_OR_NULL(l->debugfs_xve)) |
616 | goto fail; | 616 | goto fail; |
617 | 617 | ||
618 | /* | 618 | /* |
@@ -620,13 +620,13 @@ int xve_sw_init_gp106(struct device *dev) | |||
620 | * worrying the higher level SW. | 620 | * worrying the higher level SW. |
621 | */ | 621 | */ |
622 | debugfs_create_file("link_speed", S_IRUGO, | 622 | debugfs_create_file("link_speed", S_IRUGO, |
623 | g->debugfs_xve, g, | 623 | l->debugfs_xve, g, |
624 | &xve_link_speed_fops); | 624 | &xve_link_speed_fops); |
625 | debugfs_create_file("available_speeds", S_IRUGO, | 625 | debugfs_create_file("available_speeds", S_IRUGO, |
626 | g->debugfs_xve, g, | 626 | l->debugfs_xve, g, |
627 | &xve_available_speeds_fops); | 627 | &xve_available_speeds_fops); |
628 | debugfs_create_file("link_control_status", S_IRUGO, | 628 | debugfs_create_file("link_control_status", S_IRUGO, |
629 | g->debugfs_xve, g, | 629 | l->debugfs_xve, g, |
630 | &xve_link_control_status_fops); | 630 | &xve_link_control_status_fops); |
631 | 631 | ||
632 | err = 0; | 632 | err = 0; |