Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9578184e authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
parent 7c463386
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;