summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index e8340216..1e6cca6d 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -2944,8 +2944,6 @@ int gk20a_free_obj_ctx(struct channel_gk20a *c,
2944static void gk20a_remove_gr_support(struct gr_gk20a *gr) 2944static void gk20a_remove_gr_support(struct gr_gk20a *gr)
2945{ 2945{
2946 struct gk20a *g = gr->g; 2946 struct gk20a *g = gr->g;
2947 struct device *d = dev_from_gk20a(g);
2948 DEFINE_DMA_ATTRS(attrs);
2949 2947
2950 gk20a_dbg_fn(""); 2948 gk20a_dbg_fn("");
2951 2949
@@ -2954,9 +2952,8 @@ static void gk20a_remove_gr_support(struct gr_gk20a *gr)
2954 gk20a_gmmu_free(g, &gr->mmu_wr_mem); 2952 gk20a_gmmu_free(g, &gr->mmu_wr_mem);
2955 gk20a_gmmu_free(g, &gr->mmu_rd_mem); 2953 gk20a_gmmu_free(g, &gr->mmu_rd_mem);
2956 2954
2957 dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, &attrs); 2955 gk20a_gmmu_free_attr(g, DMA_ATTR_NO_KERNEL_MAPPING,
2958 dma_free_attrs(d, gr->compbit_store.size, gr->compbit_store.pages, 2956 &gr->compbit_store.mem);
2959 gr->compbit_store.base_iova, &attrs);
2960 2957
2961 memset(&gr->compbit_store, 0, sizeof(struct compbit_store_desc)); 2958 memset(&gr->compbit_store, 0, sizeof(struct compbit_store_desc));
2962 2959