mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
clk: at91: sckc: use dedicated functions to unregister clock
Use at91 specific functions to free all resources in case of error. Signed-off-by: Claudiu Beznea <[email protected]> Reviewed-by: Alexandre Belloni <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
This commit is contained in:
parent
d09e6ca138
commit
ecbcc2aa65
1 changed files with 2 additions and 2 deletions
|
|
@ -509,13 +509,13 @@ static void __init of_sam9x60_sckc_setup(struct device_node *np)
|
|||
return;
|
||||
|
||||
unregister_td_slck:
|
||||
clk_hw_unregister(clk_data->hws[1]);
|
||||
at91_clk_unregister_sam9x5_slow(clk_data->hws[1]);
|
||||
unregister_md_slck:
|
||||
clk_hw_unregister(clk_data->hws[0]);
|
||||
clk_data_free:
|
||||
kfree(clk_data);
|
||||
unregister_slow_osc:
|
||||
clk_hw_unregister(slow_osc);
|
||||
at91_clk_unregister_slow_osc(slow_osc);
|
||||
unregister_slow_rc:
|
||||
clk_hw_unregister(slow_rc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue