summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Pervushin <dpervushin@nvidia.com>2019-01-24 09:54:06 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2019-03-11 13:58:11 -0400
commit7c8d212b503bf9b0412afce25a038d0b7945d487 (patch)
tree94939471bd95b98145e73fb9c5dbeca7989b1551 /drivers
parentc9d4df288d51e4776188a25a6a2bb26ddd897a20 (diff)
gpu: do not release managed resource
l->bar is a managed resource, it will be released automatically Therefore, there is no need to explicitly unmap it Bug 200487652 Change-Id: Ic543baa770d9cbcf7e7319281c4a27fab4b4b4df Signed-off-by: dmitry pervushin <dpervushin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2012324 GVS: Gerrit_Virtual_Submit Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.c b/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.c
index aa2fa998..91e94696 100644
--- a/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.c
+++ b/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.c
@@ -58,16 +58,7 @@ struct vgpu_priv_data *vgpu_get_priv_data(struct gk20a *g)
58 58
59static void vgpu_remove_support(struct gk20a *g) 59static void vgpu_remove_support(struct gk20a *g)
60{ 60{
61 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
62
63 vgpu_remove_support_common(g); 61 vgpu_remove_support_common(g);
64
65 /* free mappings to registers, etc*/
66
67 if (l->bar1) {
68 iounmap(l->bar1);
69 l->bar1 = NULL;
70 }
71} 62}
72 63
73static void vgpu_init_vars(struct gk20a *g, struct gk20a_platform *platform) 64static void vgpu_init_vars(struct gk20a *g, struct gk20a_platform *platform)