aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/clk/clk-fixed-rate.c11
-rw-r--r--include/linux/clk-provider.h1
2 files changed, 12 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)
145} 145}
146EXPORT_SYMBOL_GPL(clk_unregister_fixed_rate); 146EXPORT_SYMBOL_GPL(clk_unregister_fixed_rate);
147 147
148void clk_hw_unregister_fixed_rate(struct clk_hw *hw)
149{
150 struct clk_fixed_rate *fixed;
151
152 fixed = to_clk_fixed_rate(hw);
153
154 clk_hw_unregister(hw);
155 kfree(fixed);
156}
157EXPORT_SYMBOL_GPL(clk_hw_unregister_fixed_rate);
158
148#ifdef CONFIG_OF 159#ifdef CONFIG_OF
149/** 160/**
150 * of_fixed_clk_setup() - Setup function for simple fixed rate clock 161 * of_fixed_clk_setup() - Setup function for simple fixed rate clock
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index fb39d5add173..eeb2e69ee727 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -293,6 +293,7 @@ void clk_unregister_fixed_rate(struct clk *clk);
293struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev, 293struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
294 const char *name, const char *parent_name, unsigned long flags, 294 const char *name, const char *parent_name, unsigned long flags,
295 unsigned long fixed_rate, unsigned long fixed_accuracy); 295 unsigned long fixed_rate, unsigned long fixed_accuracy);
296void clk_hw_unregister_fixed_rate(struct clk_hw *hw);
296 297
297void of_fixed_clk_setup(struct device_node *np); 298void of_fixed_clk_setup(struct device_node *np);
298 299