summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/semaphore.c')
-rw-r--r--drivers/gpu/nvgpu/common/semaphore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/semaphore.c b/drivers/gpu/nvgpu/common/semaphore.c
index 5496f5ec..0d512e8f 100644
--- a/drivers/gpu/nvgpu/common/semaphore.c
+++ b/drivers/gpu/nvgpu/common/semaphore.c
@@ -66,11 +66,12 @@ out:
66 return ret; 66 return ret;
67} 67}
68 68
69void gk20a_semaphore_sea_destroy(struct gk20a *g) 69void nvgpu_semaphore_sea_destroy(struct gk20a *g)
70{ 70{
71 if (!g->sema_sea) 71 if (!g->sema_sea)
72 return; 72 return;
73 73
74 nvgpu_dma_free(g, &g->sema_sea->sea_mem);
74 nvgpu_mutex_destroy(&g->sema_sea->sea_lock); 75 nvgpu_mutex_destroy(&g->sema_sea->sea_lock);
75 nvgpu_kfree(g, g->sema_sea); 76 nvgpu_kfree(g, g->sema_sea);
76 g->sema_sea = NULL; 77 g->sema_sea = NULL;