video: tegra: nvmap: Add release call in nvmap_remove

Add of_reserved_mem_device_release call in nvmap as its corresponding
init call is present in nvmap_init.

Bug 4479027

Change-Id: Ifc55ffb286af5bbe43e62cc02e100f05f20fd63f
Signed-off-by: Yash Bhatt <ybhatt@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3115521
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Ketan Patil <ketanp@nvidia.com>
This commit is contained in:
Yash Bhatt
2024-04-12 18:42:16 +00:00
committed by mobile promotions
parent d2e8382e1d
commit a22321f358

View File

@@ -1508,6 +1508,7 @@ int nvmap_remove(struct platform_device *pdev)
nvmap_heap_destroy(node->carveout);
}
kfree(dev->heaps);
of_reserved_mem_device_release(&pdev->dev);
nvmap_dev = NULL;
return 0;