Skip to content

Commit

Permalink
OMAP clock: 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.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
  • Loading branch information
Hiroshi DOYU authored and paul committed Sep 3, 2009
1 parent b04b65a commit ca4caa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,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);
Expand Down

0 comments on commit ca4caa4

Please sign in to comment.