From: Claudiu Beznea Date: Thu, 27 Jun 2019 15:53:41 +0000 (+0300) Subject: clk: at91: sckc: add support to free slow clock osclillator X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=016d22dd10eac723815adb6befdbf265a76d2383;p=linux.git clk: at91: sckc: add support to free slow clock osclillator Add support to free slow clock 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 4b0fcfd29f824..68a818e69325c 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)