mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:16:43 +07:00
drm/tegra: sor - Recursively remove debugfs tree
Removing only the root directory will fail when there are still files in it. Instead of manually removing all files, remove the whole directory recursively. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
7c4633861f
commit
9578184efa
@ -1036,7 +1036,7 @@ static int tegra_sor_debugfs_init(struct tegra_sor *sor, struct dentry *root)
|
||||
|
||||
static int tegra_sor_debugfs_exit(struct tegra_sor *sor)
|
||||
{
|
||||
debugfs_remove(sor->debugfs);
|
||||
debugfs_remove_recursive(sor->debugfs);
|
||||
sor->debugfs = NULL;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user