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>
This commit is contained in:
Konsta Holtta
2014-11-05 18:18:52 +02:00
committed by Dan Willemsen
parent 6049301229
commit e99b59d14a
3 changed files with 26 additions and 0 deletions

View File

@@ -1460,6 +1460,9 @@ static int __exit gk20a_remove(struct platform_device *dev)
cfb_remove_device(&dev->dev);
#endif
if (IS_ENABLED(CONFIG_GK20A_DEVFREQ))
gk20a_scale_exit(dev);
if (g->remove_support)
g->remove_support(dev);