summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
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/platform_gk20a.h
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/platform_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index 7638cf15..f4301dab 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -103,6 +103,10 @@ struct gk20a_platform {
103 */ 103 */
104 int (*late_probe)(struct platform_device *dev); 104 int (*late_probe)(struct platform_device *dev);
105 105
106 /* Remove device after power management has been done
107 */
108 int (*remove)(struct platform_device *dev);
109
106 /* Poweron platform dependencies */ 110 /* Poweron platform dependencies */
107 int (*busy)(struct platform_device *dev); 111 int (*busy)(struct platform_device *dev);
108 112