diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index 31cae4fd..a1e0be19 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |||
@@ -2877,10 +2877,8 @@ static int gk20a_prepare_ucode(struct gk20a *g) | |||
2877 | struct mm_gk20a *mm = &g->mm; | 2877 | struct mm_gk20a *mm = &g->mm; |
2878 | struct vm_gk20a *vm = &mm->pmu.vm; | 2878 | struct vm_gk20a *vm = &mm->pmu.vm; |
2879 | 2879 | ||
2880 | if (g->pmu_fw) { | 2880 | if (g->pmu_fw) |
2881 | gk20a_init_pmu(pmu); | 2881 | return gk20a_init_pmu(pmu); |
2882 | return 0; | ||
2883 | } | ||
2884 | 2882 | ||
2885 | g->pmu_fw = gk20a_request_firmware(g, GK20A_PMU_UCODE_IMAGE); | 2883 | g->pmu_fw = gk20a_request_firmware(g, GK20A_PMU_UCODE_IMAGE); |
2886 | if (!g->pmu_fw) { | 2884 | if (!g->pmu_fw) { |
@@ -2901,9 +2899,7 @@ static int gk20a_prepare_ucode(struct gk20a *g) | |||
2901 | gk20a_mem_wr_n(g, &pmu->ucode, 0, pmu->ucode_image, | 2899 | gk20a_mem_wr_n(g, &pmu->ucode, 0, pmu->ucode_image, |
2902 | pmu->desc->app_start_offset + pmu->desc->app_size); | 2900 | pmu->desc->app_start_offset + pmu->desc->app_size); |
2903 | 2901 | ||
2904 | gk20a_init_pmu(pmu); | 2902 | return gk20a_init_pmu(pmu); |
2905 | |||
2906 | return 0; | ||
2907 | 2903 | ||
2908 | err_release_fw: | 2904 | err_release_fw: |
2909 | release_firmware(g->pmu_fw); | 2905 | release_firmware(g->pmu_fw); |