summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2014-11-05 11:18:52 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:22 -0400
commite99b59d14a03a6b35aef5e51b5ba9ea09708b2ea (patch)
treea69d632ecb9d28614cafd4babc12360a18445a92 /drivers/gpu/nvgpu/gk20a/gk20a.c
parent6049301229b184d15873f907a35d22eb473c38a0 (diff)
gpu: nvgpu: add gk20a_scale_exit()
When removing the module, remove the device from devfreq and free resources allocated when scaling is initialized. Bug 1476801 Change-Id: I7bb0f8112a5bf7e5ce2fc56cf8af7059d910002c Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/594444 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 3d887d85..7b0db427 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1460,6 +1460,9 @@ static int __exit gk20a_remove(struct platform_device *dev)
1460 cfb_remove_device(&dev->dev); 1460 cfb_remove_device(&dev->dev);
1461#endif 1461#endif
1462 1462
1463 if (IS_ENABLED(CONFIG_GK20A_DEVFREQ))
1464 gk20a_scale_exit(dev);
1465
1463 if (g->remove_support) 1466 if (g->remove_support)
1464 g->remove_support(dev); 1467 g->remove_support(dev);
1465 1468