mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
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:
committed by
mobile promotions
parent
d2e8382e1d
commit
a22321f358
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user