summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 78e33a49..96711c0c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -609,8 +609,9 @@ static void gk20a_remove_support(struct platform_device *dev)
609{ 609{
610 struct gk20a *g = get_gk20a(dev); 610 struct gk20a *g = get_gk20a(dev);
611 611
612 /* pmu support should already be removed when driver turns off 612 if (g->pmu.remove_support)
613 gpu power rail in prepapre_poweroff */ 613 g->pmu.remove_support(&g->pmu);
614
614 if (g->gk20a_cdev.gk20a_cooling_dev) 615 if (g->gk20a_cdev.gk20a_cooling_dev)
615 thermal_cooling_device_unregister(g->gk20a_cdev.gk20a_cooling_dev); 616 thermal_cooling_device_unregister(g->gk20a_cdev.gk20a_cooling_dev);
616 617