summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
index 9f9d5ee1..df760478 100644
--- a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
+++ b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
@@ -502,6 +502,9 @@ static void gr_gv11b_remove_sysfs(struct device *dev)
502{ 502{
503 struct gk20a *g = get_gk20a(dev); 503 struct gk20a *g = get_gk20a(dev);
504 504
505 if (!g->ecc.gr.sm_l1_tag_corrected_err_count.counters)
506 return;
507
505 gr_gp10b_ecc_stat_remove(dev, 508 gr_gp10b_ecc_stat_remove(dev,
506 0, 509 0,
507 &g->ecc.gr.sm_l1_tag_corrected_err_count, 510 &g->ecc.gr.sm_l1_tag_corrected_err_count,