summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2014-11-05 11:09:26 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:22 -0400
commit6049301229b184d15873f907a35d22eb473c38a0 (patch)
tree49ced67c74cf1e70433a2fe36282b785d3cdc1b5 /drivers/gpu/nvgpu/gk20a/gk20a.c
parent3501269d1cdb08b5b8e67d6742f606211816e827 (diff)
gpu: nvgpu: remove platform device on exit
Add ->remove() for undoing the ->probe() and ->late_probe() in gk20a_platform devices, and call it when gk20a is removed. Bug 1476801 Change-Id: Ic9b29c0a7ea4a4cae7b5a0f66774bd799eb28434 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/594443 Reviewed-by: Automatic_Commit_Validation_User 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 ab9dd037..3d887d85 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1478,6 +1478,9 @@ static int __exit gk20a_remove(struct platform_device *dev)
1478 else 1478 else
1479 gk20a_pm_disable_clk(&dev->dev); 1479 gk20a_pm_disable_clk(&dev->dev);
1480 1480
1481 if (platform->remove)
1482 platform->remove(dev);
1483
1481 set_gk20a(dev, NULL); 1484 set_gk20a(dev, NULL);
1482 kfree(g); 1485 kfree(g);
1483 1486