sh: clkfwk: Use debugfs_remove_recursive() for rewinding
Rewinding each debugfs entries to unregister if an error happens.
Based on the commit ca4caa4e1d
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
9e1985e13d
commit
4f615d575c
|
@ -621,7 +621,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);
|
||||||
|
|
Loading…
Reference in New Issue