summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2019-06-27 18:53:39 +0300
committerStephen Boyd <sboyd@kernel.org>2019-06-27 11:18:16 -0700
commit7fb791d07954910ced6edbecc60c07b7191a39cf (patch)
tree9b1ecf54cafc013a9f530c9e50a3ba1cfd23383c /drivers/clk
parent04bcc4275e601d5928beaf21e888017d4b7ad3d1 (diff)
downloadlinux-7fb791d07954910ced6edbecc60c07b7191a39cf.tar.gz
linux-7fb791d07954910ced6edbecc60c07b7191a39cf.tar.bz2
linux-7fb791d07954910ced6edbecc60c07b7191a39cf.zip
clk: at91: sckc: add support to free slow oscillator
Add support to free slow 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 1f0f1cd06387..3f84d58d06a5 100644
--- a/drivers/clk/at91/sckc.c
+++ b/drivers/clk/at91/sckc.c
@@ -161,6 +161,14 @@ at91_clk_register_slow_osc(void __iomem *sckcr,
return hw;
}
+static void at91_clk_unregister_slow_osc(struct clk_hw *hw)
+{
+ struct clk_slow_osc *osc = to_clk_slow_osc(hw);
+
+ clk_hw_unregister(hw);
+ kfree(osc);
+}
+
static unsigned long clk_slow_rc_osc_recalc_rate(struct clk_hw *hw,
unsigned long parent_rate)
{