Browse Source

sh: clkfwk: Use debugfs_remove_recursive() for rewinding

Rewinding each debugfs entries to unregister if an error happens.

Based on the commit ca4caa4e1d45f9542fa54263974d0ef637157b4a

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Hiroshi DOYU 15 năm trước cách đây
mục cha
commit
4f615d575c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      arch/sh/kernel/cpu/clock.c

+ 1 - 1
arch/sh/kernel/cpu/clock.c

@@ -621,7 +621,7 @@ static int __init clk_debugfs_init(void)
 	}
 	return 0;
 err_out:
-	debugfs_remove(clk_debugfs_root); /* REVISIT: Cleanup correctly */
+	debugfs_remove_recursive(clk_debugfs_root);
 	return err;
 }
 late_initcall(clk_debugfs_init);