Commit ca4caa4e authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by paul

OMAP clock: use debugfs_remove_recursive() for rewinding

Rewinding each debugfs entries to unregister if an error happens.
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent b04b65ab
...@@ -488,7 +488,7 @@ static int __init clk_debugfs_init(void) ...@@ -488,7 +488,7 @@ static int __init clk_debugfs_init(void)
} }
return 0; return 0;
err_out: err_out:
debugfs_remove(clk_debugfs_root); /* REVISIT: Cleanup correctly */ debugfs_remove_recursive(clk_debugfs_root);
return err; return err;
} }
late_initcall(clk_debugfs_init); late_initcall(clk_debugfs_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment