summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2019-06-27 18:53:40 +0300
committerStephen Boyd <sboyd@kernel.org>2019-06-27 21:18:17 +0300
commit036702468c9112f65abc58cce6770e01e41996a9 (patch)
treeefd3523c86c41d63fe37210ce1eb4e74a2305ca7 /drivers/clk
parent7fb791d07954910ced6edbecc60c07b7191a39cf (diff)
downloadlinux-036702468c9112f65abc58cce6770e01e41996a9.tar.xz
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/at91/sckc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c
index 3f84d58d06a5..4b0fcfd29f82 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);