Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f615d57 authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Paul Mundt
Browse files

sh: clkfwk: Use debugfs_remove_recursive() for rewinding



Rewinding each debugfs entries to unregister if an error happens.

Based on the commit ca4caa4e

Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9e1985e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);