diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index c6ea2587..32c74f3a 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -1227,13 +1227,10 @@ void gk20a_free_inst_block(struct gk20a *g, struct nvgpu_mem *inst_block) | |||
1227 | 1227 | ||
1228 | u64 gk20a_mm_inst_block_addr(struct gk20a *g, struct nvgpu_mem *inst_block) | 1228 | u64 gk20a_mm_inst_block_addr(struct gk20a *g, struct nvgpu_mem *inst_block) |
1229 | { | 1229 | { |
1230 | u64 addr; | ||
1231 | if (g->mm.has_physical_mode) | 1230 | if (g->mm.has_physical_mode) |
1232 | addr = gk20a_mem_phys(inst_block); | 1231 | return nvgpu_mem_get_phys_addr(g, inst_block); |
1233 | else | 1232 | else |
1234 | addr = nvgpu_mem_get_addr(g, inst_block); | 1233 | return nvgpu_mem_get_addr(g, inst_block); |
1235 | |||
1236 | return addr; | ||
1237 | } | 1234 | } |
1238 | 1235 | ||
1239 | static int gk20a_init_bar1_vm(struct mm_gk20a *mm) | 1236 | static int gk20a_init_bar1_vm(struct mm_gk20a *mm) |