From a30f3075544b5edd2144383459d2650a88b1cde7 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Fri, 5 Jan 2018 11:14:35 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1632752 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/module.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/common/linux/module.c') 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) #ifdef CONFIG_TEGRA_19x_GPU t19x_remove_support(g); #endif + + nvgpu_free_enabled_flags(g); } static int gk20a_init_support(struct platform_device *dev) -- cgit v1.2.2