aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2019-08-19 18:31:38 +0530
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2019-10-26 16:01:37 +0530
commit3588406dab801d2a4597f957638ca27cdf33e369 (patch)
tree437c0984f1f9e6bbb1c81e2191ff735f7f3c1660
parent33d59b737366b8b2650370d5e7e2f4f4800e9aec (diff)
download96b-common-3588406dab801d2a4597f957638ca27cdf33e369.tar.gz
clk: Add clk_hw_unregister_composite helper function definition
This function has been delcared but not defined anywhere. Hence, this commit adds definition for it. Fixes: 49cb392d3639 ("clk: composite: Add hw based registration APIs") Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
-rw-r--r--drivers/clk/clk-composite.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c
index 28aaf4a3b28a..3e9c3e608769 100644
--- a/drivers/clk/clk-composite.c
+++ b/drivers/clk/clk-composite.c
@@ -343,3 +343,14 @@ void clk_unregister_composite(struct clk *clk)
clk_unregister(clk);
kfree(composite);
}
+
+void clk_hw_unregister_composite(struct clk_hw *hw)
+{
+ struct clk_composite *composite;
+
+ composite = to_clk_composite(hw);
+
+ clk_hw_unregister(hw);
+ kfree(composite);
+}
+EXPORT_SYMBOL_GPL(clk_hw_unregister_composite);