[v7,2/7] clk: Add clk_hw_unregister_composite helper function definition

Message ID 20191115162901.17456-3-manivannan.sadhasivam@linaro.org
State Accepted
Commit d8549bcd0529fcbd064c0e106f0a8806cab7546f
Headers show
Series
  • [v7,1/7] clk: Zero init clk_init_data in helpers
Related show

Commit Message

Manivannan Sadhasivam Nov. 15, 2019, 4:28 p.m.
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>

---
 drivers/clk/clk-composite.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
2.17.1

Comments

Stephen Boyd Nov. 26, 2019, 6:06 p.m. | #1
Quoting Manivannan Sadhasivam (2019-11-15 08:28:56)
> 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>

> ---


Applied to clk-next

Patch

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);