summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/module.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-01-05 14:14:35 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-10 07:05:20 -0500
commita30f3075544b5edd2144383459d2650a88b1cde7 (patch)
tree7e0b21d9fecf8562993b3371736aa07757683886 /drivers/gpu/nvgpu/common/linux/module.c
parent98210aad81e2f89c2df2ed9b73ab9a96b4c85f41 (diff)
gpu: nvgpu: Free enabled flags on driver unload
Make sure the enabled flags are freed before the driver unloads. Bug 200369180 Change-Id: Ibac9ee61ca99bdfda03d76e393c7cd6cb6cc299a Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1632752 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index 5d91da8f..cc2b5ec7 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -673,6 +673,8 @@ void gk20a_remove_support(struct gk20a *g)
673#ifdef CONFIG_TEGRA_19x_GPU 673#ifdef CONFIG_TEGRA_19x_GPU
674 t19x_remove_support(g); 674 t19x_remove_support(g);
675#endif 675#endif
676
677 nvgpu_free_enabled_flags(g);
676} 678}
677 679
678static int gk20a_init_support(struct platform_device *dev) 680static int gk20a_init_support(struct platform_device *dev)