From: Claudiu Beznea Date: Thu, 27 Jun 2019 15:53:40 +0000 (+0300) Subject: clk: at91: sckc: add support to free slow rc oscillator X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=036702468c9112f65abc58cce6770e01e41996a9;p=linux.git clk: at91: sckc: add support to free slow rc oscillator Add support to free slow rc oscillator resources. Signed-off-by: Claudiu Beznea Reviewed-by: Alexandre Belloni Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c index 3f84d58d06a54..4b0fcfd29f824 100644 --- a/drivers/clk/at91/sckc.c +++ b/drivers/clk/at91/sckc.c @@ -263,6 +263,14 @@ at91_clk_register_slow_rc_osc(void __iomem *sckcr, 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) { struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw);