2022-05-04 17:42:38

by Yassine Oudjana

[permalink] [raw]
Subject: [PATCH 04/13] clk: composite: Export clk_unregister_composite

From: Yassine Oudjana <[email protected]>

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 <[email protected]>
---
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