提交 9578184e 编写于 作者: T Thierry Reding

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: NThierry Reding <treding@nvidia.com>
上级 7c463386
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册