소스 검색

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>
Thierry Reding 11 년 전
부모
커밋
9578184efa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/gpu/drm/tegra/sor.c

+ 1 - 1
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;