diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-05-22 14:33:35 +0900 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-06-30 13:07:10 -0700 |
commit | 52445637371e5a30c0320eae75970c28f982d914 (patch) | |
tree | 6c6af6ebc56303adbff4befd55a045c99f4a6e68 /drivers/clk | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) |
clk: fixed-rate: add clk_hw_unregister_fixed_rate()
This will be used to migrate to the clk_hw APIs.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
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 |