diff options
author | Thierry Reding <treding@nvidia.com> | 2014-04-25 10:48:36 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-06-06 02:38:30 -0400 |
commit | 9578184efa6b93f71f34744351a6a8caa79d6cda (patch) | |
tree | c476ef229c27ba0881beccf1af1dadc39bd75482 | |
parent | 7c4633861f810fb52a75ea45a7ae1df2a14fe745 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/tegra/sor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 5c67d97bd21d..06f800917738 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c | |||
@@ -1036,7 +1036,7 @@ remove: | |||
1036 | 1036 | ||
1037 | static int tegra_sor_debugfs_exit(struct tegra_sor *sor) | 1037 | static int tegra_sor_debugfs_exit(struct tegra_sor *sor) |
1038 | { | 1038 | { |
1039 | debugfs_remove(sor->debugfs); | 1039 | debugfs_remove_recursive(sor->debugfs); |
1040 | sor->debugfs = NULL; | 1040 | sor->debugfs = NULL; |
1041 | 1041 | ||
1042 | return 0; | 1042 | return 0; |