clk: at91: sckc: add support to free slow rc oscillator

Add support to free slow rc oscillator resources.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
Claudiu Beznea 2019-06-27 18:53:40 +03:00 committed by Stephen Boyd
parent 7fb791d079
commit 036702468c
1 changed files with 8 additions and 0 deletions

View File

@ -263,6 +263,14 @@ at91_clk_register_slow_rc_osc(void __iomem *sckcr,
return hw; return hw;
} }
static void at91_clk_unregister_slow_rc_osc(struct clk_hw *hw)
{
struct clk_slow_rc_osc *osc = to_clk_slow_rc_osc(hw);
clk_hw_unregister(hw);
kfree(osc);
}
static int clk_sam9x5_slow_set_parent(struct clk_hw *hw, u8 index) static int clk_sam9x5_slow_set_parent(struct clk_hw *hw, u8 index)
{ {
struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw); struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw);