From a22321f358410aaba40eb1a9908151c3c959b142 Mon Sep 17 00:00:00 2001 From: Yash Bhatt Date: Fri, 12 Apr 2024 18:42:16 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3115521 GVS: Gerrit_Virtual_Submit Reviewed-by: Ashish Mhetre Reviewed-by: Sachin Nikam Reviewed-by: Pritesh Raithatha Reviewed-by: Ketan Patil --- drivers/video/tegra/nvmap/nvmap_dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/tegra/nvmap/nvmap_dev.c b/drivers/video/tegra/nvmap/nvmap_dev.c index f904c83b..62737f7b 100644 --- a/drivers/video/tegra/nvmap/nvmap_dev.c +++ b/drivers/video/tegra/nvmap/nvmap_dev.c @@ -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;