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>
This commit is contained in:
Alex Waterman
2018-01-05 11:14:35 -08:00
committed by mobile promotions
parent 98210aad81
commit a30f307554
3 changed files with 11 additions and 0 deletions

View File

@@ -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)