From: Thierry Reding Date: Fri, 25 Apr 2014 14:48:36 +0000 (+0200) Subject: drm/tegra: sor - Recursively remove debugfs tree X-Git-Tag: firefly_0821_release~176^2~3773^2~9^2~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9578184efa6b93f71f34744351a6a8caa79d6cda;p=firefly-linux-kernel-4.4.55.git 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 --- 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: static int tegra_sor_debugfs_exit(struct tegra_sor *sor) { - debugfs_remove(sor->debugfs); + debugfs_remove_recursive(sor->debugfs); sor->debugfs = NULL; return 0;