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/common/linux/pci.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/common/linux/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c index 3a452d18..3ff2630f 100644 --- a/drivers/gpu/nvgpu/common/linux/pci.c +++ b/drivers/gpu/nvgpu/common/linux/pci.c | |||
@@ -443,6 +443,7 @@ static void nvgpu_pci_remove(struct pci_dev *pdev) | |||
443 | { | 443 | { |
444 | struct gk20a_platform *platform = gk20a_get_platform(&pdev->dev); | 444 | struct gk20a_platform *platform = gk20a_get_platform(&pdev->dev); |
445 | struct gk20a *g = get_gk20a(&pdev->dev); | 445 | struct gk20a *g = get_gk20a(&pdev->dev); |
446 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | ||
446 | 447 | ||
447 | gk20a_dbg(gpu_dbg_shutdown, "Removing nvgpu driver!\n"); | 448 | gk20a_dbg(gpu_dbg_shutdown, "Removing nvgpu driver!\n"); |
448 | 449 | ||
@@ -474,8 +475,8 @@ static void nvgpu_pci_remove(struct pci_dev *pdev) | |||
474 | gk20a_dbg(gpu_dbg_shutdown, "User de-init done.\b"); | 475 | gk20a_dbg(gpu_dbg_shutdown, "User de-init done.\b"); |
475 | 476 | ||
476 | #ifdef CONFIG_DEBUG_FS | 477 | #ifdef CONFIG_DEBUG_FS |
477 | debugfs_remove_recursive(platform->debugfs); | 478 | debugfs_remove_recursive(l->debugfs); |
478 | debugfs_remove_recursive(platform->debugfs_alias); | 479 | debugfs_remove_recursive(l->debugfs_alias); |
479 | #endif | 480 | #endif |
480 | 481 | ||
481 | nvgpu_remove_sysfs(dev_from_gk20a(g)); | 482 | nvgpu_remove_sysfs(dev_from_gk20a(g)); |