diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index de44f925..77c5da0a 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |||
@@ -2286,7 +2286,8 @@ void gk20a_remove_pmu_support(struct pmu_gk20a *pmu) | |||
2286 | { | 2286 | { |
2287 | gk20a_dbg_fn(""); | 2287 | gk20a_dbg_fn(""); |
2288 | 2288 | ||
2289 | gk20a_allocator_destroy(&pmu->dmem); | 2289 | if (pmu->dmem.init) |
2290 | gk20a_allocator_destroy(&pmu->dmem); | ||
2290 | } | 2291 | } |
2291 | 2292 | ||
2292 | static int gk20a_init_pmu_reset_enable_hw(struct gk20a *g) | 2293 | static int gk20a_init_pmu_reset_enable_hw(struct gk20a *g) |