diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-06-30 13:07:58 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-06-30 13:07:58 -0700 |
commit | 37bcfe9aba97c0f855fe6c130d3adb47bcda98ad (patch) | |
tree | 54c303af3231ef66d915daf947dd89cb56c8236d /drivers/clk | |
parent | 224b3b262c52ef3b13ec62cd879b48d2611c2c10 (diff) | |
parent | 52445637371e5a30c0320eae75970c28f982d914 (diff) |
Merge branch 'clk-hw-unregister-fixed-rate' into clk-next
* clk-hw-unregister-fixed-rate:
clk: fixed-rate: add clk_hw_unregister_fixed_rate()
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-fixed-rate.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index 8e4453eb54e8..2edb39342a02 100644 --- a/drivers/clk/clk-fixed-rate.c +++ b/drivers/clk/clk-fixed-rate.c @@ -145,6 +145,17 @@ void clk_unregister_fixed_rate(struct clk *clk) } EXPORT_SYMBOL_GPL(clk_unregister_fixed_rate); +void clk_hw_unregister_fixed_rate(struct clk_hw *hw) +{ + struct clk_fixed_rate *fixed; + + fixed = to_clk_fixed_rate(hw); + + clk_hw_unregister(hw); + kfree(fixed); +} +EXPORT_SYMBOL_GPL(clk_hw_unregister_fixed_rate); + #ifdef CONFIG_OF /** * of_fixed_clk_setup() - Setup function for simple fixed rate clock |