diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 6b7f84a3..cfd44cc3 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -268,16 +268,10 @@ static int gk20a_init_mm_reset_enable_hw(struct gk20a *g) | |||
268 | static void gk20a_remove_vm(struct vm_gk20a *vm, struct inst_desc *inst_block) | 268 | static void gk20a_remove_vm(struct vm_gk20a *vm, struct inst_desc *inst_block) |
269 | { | 269 | { |
270 | struct gk20a *g = vm->mm->g; | 270 | struct gk20a *g = vm->mm->g; |
271 | struct device *d = dev_from_gk20a(g); | ||
272 | 271 | ||
273 | gk20a_dbg_fn(""); | 272 | gk20a_dbg_fn(""); |
274 | 273 | ||
275 | if (inst_block->cpuva) | 274 | gk20a_free_inst_block(g, inst_block); |
276 | dma_free_coherent(d, inst_block->size, | ||
277 | inst_block->cpuva, inst_block->iova); | ||
278 | inst_block->cpuva = NULL; | ||
279 | inst_block->iova = 0; | ||
280 | |||
281 | gk20a_vm_remove_support_nofree(vm); | 275 | gk20a_vm_remove_support_nofree(vm); |
282 | } | 276 | } |
283 | 277 | ||