diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 32570d3d..e2795fbf 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -817,7 +817,8 @@ static int gk20a_pm_prepare_poweroff(struct device *dev) | |||
817 | goto done; | 817 | goto done; |
818 | 818 | ||
819 | /* disable elpg before gr or fifo suspend */ | 819 | /* disable elpg before gr or fifo suspend */ |
820 | ret |= gk20a_pmu_destroy(g); | 820 | if (g->ops.pmu.is_pmu_supported(g)) |
821 | ret |= gk20a_pmu_destroy(g); | ||
821 | /* | 822 | /* |
822 | * After this point, gk20a interrupts should not get | 823 | * After this point, gk20a interrupts should not get |
823 | * serviced. | 824 | * serviced. |