[PATCH 04/13] clk: composite: Export clk_unregister_composite

Yassine Oudjana yassine.oudjana at gmail.com
Wed May 4 05:25:53 PDT 2022


From: Yassine Oudjana <y.oudjana at protonmail.com>

This is required to build the Mediatek clock core as a module.
Doing so currently fails:

ERROR: modpost: "clk_unregister_composite" [drivers/clk/mediatek/clk-mtk.ko] undefined!

Fixes: cb50864f6cee ("clk: mediatek: Implement mtk_clk_unregister_composites() API")
Signed-off-by: Yassine Oudjana <y.oudjana at protonmail.com>
---
 drivers/clk/clk-composite.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c
index b9c5f904f535..0935a54c9d81 100644
--- a/drivers/clk/clk-composite.c
+++ b/drivers/clk/clk-composite.c
@@ -425,6 +425,7 @@ void clk_unregister_composite(struct clk *clk)
 	clk_unregister(clk);
 	kfree(composite);
 }
+EXPORT_SYMBOL_GPL(clk_unregister_composite);
 
 void clk_hw_unregister_composite(struct clk_hw *hw)
 {
-- 
2.36.0




More information about the linux-arm-kernel mailing list