drm/tegra: sor - Recursively remove debugfs tree
authorThierry Reding <treding@nvidia.com>
Fri, 25 Apr 2014 14:48:36 +0000 (16:48 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 6 Jun 2014 06:38:30 +0000 (08:38 +0200)
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>
drivers/gpu/drm/tegra/sor.c

index 5c67d97bd21d31c76812e4656ece1714c6971fa9..06f80091773818ec6ee9b4c7332da9d34999bf06 100644 (file)
@@ -1036,7 +1036,7 @@ remove:
 
 static int tegra_sor_debugfs_exit(struct tegra_sor *sor)
 {
-       debugfs_remove(sor->debugfs);
+       debugfs_remove_recursive(sor->debugfs);
        sor->debugfs = NULL;
 
        return 0;