From: Hiroshi DOYU Date: Mon, 10 May 2010 11:50:55 +0000 (+0300) Subject: sh: clkfwk: Use debugfs_remove_recursive() for rewinding X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4f615d575c17195f975cf8314be54f362d859a3f;p=deliverable%2Flinux.git 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 Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c index 073f4ffe956a..a725c7feb747 100644 --- a/arch/sh/kernel/cpu/clock.c +++ b/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);