From 09652f1ebf94208b67064027894151f61ea4bb84 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Mon, 8 Oct 2018 16:20:30 +0530 Subject: [PATCH] gpu: nvgpu: remove sec2 as part of gk20a_remove_support -Add code to remove/free sec2 data as part of gk20a_remove_support() by calling sec2->remove_support() JIRA NVGPUT-77 Change-Id: Id0804d929e2fe866a0e2a93eff8d8dac6b69bc6b Signed-off-by: Mahantesh Kumbar Reviewed-on: https://git-master.nvidia.com/r/1921518 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index 46850a059..71a6cef61 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -683,6 +683,10 @@ void gk20a_remove_support(struct gk20a *g) if (g->pmu.remove_support) g->pmu.remove_support(&g->pmu); + if (g->sec2.remove_support != NULL) { + g->sec2.remove_support(&g->sec2); + } + if (g->acr.remove_support != NULL) { g->acr.remove_support(&g->acr); }