summaryrefslogtreecommitdiffstats
path: root/drivers/clk/at91
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2019-06-27 18:53:41 +0300
committerStephen Boyd <sboyd@kernel.org>2019-06-27 11:18:18 -0700
commit016d22dd10eac723815adb6befdbf265a76d2383 (patch)
tree1e45f2afb1acc3c2a3e22d440e53507a8ec771e3 /drivers/clk/at91
parent036702468c9112f65abc58cce6770e01e41996a9 (diff)
downloadlinux-016d22dd10eac723815adb6befdbf265a76d2383.tar.bz2
clk: at91: sckc: add support to free slow clock osclillator
Add support to free slow clock 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/at91')
-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 4b0fcfd29f82..68a818e69325 100644
--- a/drivers/clk/at91/sckc.c
+++ b/drivers/clk/at91/sckc.c
@@ -350,6 +350,14 @@ at91_clk_register_sam9x5_slow(void __iomem *sckcr,
return hw;
}
+static void at91_clk_unregister_sam9x5_slow(struct clk_hw *hw)
+{
+ struct clk_sam9x5_slow *slowck = to_clk_sam9x5_slow(hw);
+
+ clk_hw_unregister(hw);
+ kfree(slowck);
+}
+
static void __init at91sam9x5_sckc_register(struct device_node *np,
unsigned int rc_osc_startup_us,
const struct clk_slow_bits *bits)