From 2d5ff668cbc6a932df2c9cf79627d1d340e5c2c0 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 27 Oct 2014 11:06:59 +0200 Subject: gpu: nvgpu: GR and LTC HAL to use const structs Convert GR and LTC HALs to use const structs, and initialize them with macros. Bug 1567274 Change-Id: Ia3f24a5eccb27578d9cba69755f636818d11275c Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/590371 --- drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 9a8e11af..e3046177 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c @@ -1100,7 +1100,7 @@ u64 gk20a_locked_gmmu_map(struct vm_gk20a *vm, COMP_TAG_LINE_SIZE_SHIFT; /* init/clear the ctag buffer */ - g->ops.ltc.cbc_ctrl(g, gk20a_cbc_op_clear, + g->ops.ltc->cbc_ctrl(g, gk20a_cbc_op_clear, ctag_offset, ctag_offset + ctag_lines - 1); } @@ -3079,7 +3079,7 @@ int gk20a_mm_suspend(struct gk20a *g) { gk20a_dbg_fn(""); - g->ops.ltc.elpg_flush(g); + g->ops.ltc->elpg_flush(g); gk20a_dbg_fn("done"); return 0; -- cgit v1.2.2