diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index ac941cfcb..610a5c9d0 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -1596,8 +1596,6 @@ static int gk20a_probe(struct platform_device *dev) return -ENOMEM; } - hash_init(l->ecc_sysfs_stats_htable); - gk20a = &l->g; nvgpu_log_fn(gk20a, " "); diff --git a/drivers/gpu/nvgpu/os/linux/os_linux.h b/drivers/gpu/nvgpu/os/linux/os_linux.h index 5a851d9e6..7b534662e 100644 --- a/drivers/gpu/nvgpu/os/linux/os_linux.h +++ b/drivers/gpu/nvgpu/os/linux/os_linux.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -18,7 +18,6 @@ #define NVGPU_OS_LINUX_H #include -#include #include #include @@ -130,7 +129,6 @@ struct nvgpu_os_linux { struct dentry *debugfs_dump_ctxsw_stats; #endif - DECLARE_HASHTABLE(ecc_sysfs_stats_htable, 5); struct dev_ext_attribute *ecc_attrs; struct gk20a_cde_app cde_app; diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c index cb1ed848b..b1e72528a 100644 --- a/drivers/gpu/nvgpu/os/linux/pci.c +++ b/drivers/gpu/nvgpu/os/linux/pci.c @@ -515,8 +515,6 @@ static int nvgpu_pci_probe(struct pci_dev *pdev, return -ENOMEM; } - hash_init(l->ecc_sysfs_stats_htable); - g = &l->g; g->log_mask = NVGPU_DEFAULT_DBG_MASK;