drivers: Fix host1x and nvhost debugfs cleanup

Both host1x and nvhost expose APIs that deinitialize the debugfs
and remove debugfs files/directories that were created. At present,
debugfs_remove() is inovked to do this. However,
debugfs_remove_recursive() should instead be used to ensure that
all files within a debugfs are recursively removed before the
directory is removed.

Bug 3662478

Change-Id: Idb7d1458c02f57f6d656a7bfe1df3adf5e0497aa
Signed-off-by: Abhinaya Agrawal <abhinayaa@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2714042
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Omar Nemri <onemri@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Abhinaya Agrawal
2022-05-17 14:26:31 -07:00
committed by Laxman Dewangan
parent 58159f3b83
commit c87eb8b8d9

View File

@@ -629,7 +629,7 @@ void nvhost_module_deinit(struct platform_device *pdev)
falcon_exit(falcon);
}
debugfs_remove(pdata->debugfs);
debugfs_remove_recursive(pdata->debugfs);
}
EXPORT_SYMBOL(nvhost_module_deinit);