[PATCH RESEND AGAIN] clk: clean up everything on debugfs error

2013-11-27 Thread Alex Elder
[Maybe the third time will be the charm. -Alex] If CONFIG_COMMON_CLK_DEBUG is defined, clk_debug_create_one() is called to populate a debugfs directory with a few entries that are common for all clock types. If an error happens after creating the first one debugfs_remove() is called on the

[PATCH RESEND AGAIN] clk: clean up everything on debugfs error

2013-11-27 Thread Alex Elder
[Maybe the third time will be the charm. -Alex] If CONFIG_COMMON_CLK_DEBUG is defined, clk_debug_create_one() is called to populate a debugfs directory with a few entries that are common for all clock types. If an error happens after creating the first one debugfs_remove() is called on the