summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c
index d5b82fcc..ee176b8b 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c
@@ -120,6 +120,15 @@ static int gk20a_generic_late_probe(struct platform_device *dev)
120 return 0; 120 return 0;
121} 121}
122 122
123static int gk20a_generic_remove(struct platform_device *dev)
124{
125 struct gk20a_platform *platform = gk20a_get_platform(dev);
126
127 tegra_pd_remove_sd(&platform->g->pd);
128
129 return 0;
130}
131
123struct gk20a_platform gk20a_generic_platform = { 132struct gk20a_platform gk20a_generic_platform = {
124 .railgate = gk20a_generic_railgate, 133 .railgate = gk20a_generic_railgate,
125 .unrailgate = gk20a_generic_unrailgate, 134 .unrailgate = gk20a_generic_unrailgate,
@@ -127,5 +136,6 @@ struct gk20a_platform gk20a_generic_platform = {
127 136
128 .probe = gk20a_generic_probe, 137 .probe = gk20a_generic_probe,
129 .late_probe = gk20a_generic_late_probe, 138 .late_probe = gk20a_generic_late_probe,
139 .remove = gk20a_generic_remove,
130 .default_big_page_size = SZ_128K, 140 .default_big_page_size = SZ_128K,
131}; 141};