summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-04-25 16:48:36 +0200
committerThierry Reding <treding@nvidia.com>2014-06-06 08:38:30 +0200
commit9578184efa6b93f71f34744351a6a8caa79d6cda (patch)
treec476ef229c27ba0881beccf1af1dadc39bd75482 /drivers/gpu/drm/tegra
parent7c4633861f810fb52a75ea45a7ae1df2a14fe745 (diff)
downloadop-kernel-dev-9578184efa6b93f71f34744351a6a8caa79d6cda.zip
op-kernel-dev-9578184efa6b93f71f34744351a6a8caa79d6cda.tar.gz
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>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/sor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index 5c67d97..06f8009 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;
OpenPOWER on IntegriCloud