diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 79d6bd5f..ebc25a26 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -615,9 +615,9 @@ static int gk20a_pm_unrailgate(struct device *dev) | |||
615 | { | 615 | { |
616 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 616 | struct gk20a_platform *platform = dev_get_drvdata(dev); |
617 | int ret = 0; | 617 | int ret = 0; |
618 | #ifdef CONFIG_DEBUG_FS | ||
618 | struct gk20a *g = get_gk20a(dev); | 619 | struct gk20a *g = get_gk20a(dev); |
619 | 620 | ||
620 | #ifdef CONFIG_DEBUG_FS | ||
621 | g->pstats.last_rail_ungate_start = jiffies; | 621 | g->pstats.last_rail_ungate_start = jiffies; |
622 | if (g->pstats.railgating_cycle_count >= 1) | 622 | if (g->pstats.railgating_cycle_count >= 1) |
623 | g->pstats.total_rail_gate_time_ms = | 623 | g->pstats.total_rail_gate_time_ms = |
@@ -974,8 +974,10 @@ static int __exit gk20a_remove(struct platform_device *pdev) | |||
974 | 974 | ||
975 | gk20a_user_deinit(dev, &nvgpu_class); | 975 | gk20a_user_deinit(dev, &nvgpu_class); |
976 | 976 | ||
977 | #ifdef CONFIG_DEBUG_FS | ||
977 | debugfs_remove_recursive(platform->debugfs); | 978 | debugfs_remove_recursive(platform->debugfs); |
978 | debugfs_remove_recursive(platform->debugfs_alias); | 979 | debugfs_remove_recursive(platform->debugfs_alias); |
980 | #endif | ||
979 | 981 | ||
980 | gk20a_remove_sysfs(dev); | 982 | gk20a_remove_sysfs(dev); |
981 | 983 | ||