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, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 79bfb687..4b39df42 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -391,7 +391,7 @@ int gk20a_init_mm_setup_sw(struct gk20a *g) | |||
391 | } | 391 | } |
392 | 392 | ||
393 | /* make sure gk20a_init_mm_support is called before */ | 393 | /* make sure gk20a_init_mm_support is called before */ |
394 | static int gk20a_init_mm_setup_hw(struct gk20a *g) | 394 | int gk20a_init_mm_setup_hw(struct gk20a *g) |
395 | { | 395 | { |
396 | struct mm_gk20a *mm = &g->mm; | 396 | struct mm_gk20a *mm = &g->mm; |
397 | struct inst_desc *inst_block = &mm->bar1.inst_block; | 397 | struct inst_desc *inst_block = &mm->bar1.inst_block; |
@@ -435,9 +435,8 @@ int gk20a_init_mm_support(struct gk20a *g) | |||
435 | if (err) | 435 | if (err) |
436 | return err; | 436 | return err; |
437 | 437 | ||
438 | err = gk20a_init_mm_setup_hw(g); | 438 | if (g->ops.mm.init_mm_setup_hw) |
439 | if (err) | 439 | err = g->ops.mm.init_mm_setup_hw(g); |
440 | return err; | ||
441 | 440 | ||
442 | return err; | 441 | return err; |
443 | } | 442 | } |
@@ -3116,5 +3115,6 @@ void gk20a_init_mm(struct gpu_ops *gops) | |||
3116 | gops->mm.get_physical_addr_bits = gk20a_mm_get_physical_addr_bits; | 3115 | gops->mm.get_physical_addr_bits = gk20a_mm_get_physical_addr_bits; |
3117 | gops->mm.get_mmu_levels = gk20a_mm_get_mmu_levels; | 3116 | gops->mm.get_mmu_levels = gk20a_mm_get_mmu_levels; |
3118 | gops->mm.init_pdb = gk20a_mm_init_pdb; | 3117 | gops->mm.init_pdb = gk20a_mm_init_pdb; |
3118 | gops->mm.init_mm_setup_hw = gk20a_init_mm_setup_hw; | ||
3119 | } | 3119 | } |
3120 | 3120 | ||