Skip to content

Commit

Permalink
sh: clkfwk: Use debugfs_remove_recursive() for rewinding
Browse files Browse the repository at this point in the history
Rewinding each debugfs entries to unregister if an error happens.

Based on the commit ca4caa4

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Hiroshi DOYU authored and Paul Mundt committed May 11, 2010
1 parent 9e1985e commit 4f615d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/cpu/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 4f615d5

Please sign in to comment.