Skip to content

Commit a8cd038

Browse files
committed
clk: mediatek: Export clk_ops structures to modules
modpost complains once these drivers become modules. ERROR: modpost: "mtk_mux_gate_clr_set_upd_ops" [drivers/clk/mediatek/clk-mt6779.ko] undefined! Let's just export them. Cc: Hanks Chen <[email protected]> Cc: Wendell Lin <[email protected]> Cc: Lee Jones <[email protected]> Cc: Miles Chen <[email protected]> Fixes: 32b028f ("clk: mediatek: support COMMON_CLK_MEDIATEK module build") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent f09b946 commit a8cd038

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/mediatek/clk-mux.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ const struct clk_ops mtk_mux_clr_set_upd_ops = {
121121
.get_parent = mtk_clk_mux_get_parent,
122122
.set_parent = mtk_clk_mux_set_parent_setclr_lock,
123123
};
124+
EXPORT_SYMBOL_GPL(mtk_mux_clr_set_upd_ops);
124125

125126
const struct clk_ops mtk_mux_gate_clr_set_upd_ops = {
126127
.enable = mtk_clk_mux_enable_setclr,
@@ -129,6 +130,7 @@ const struct clk_ops mtk_mux_gate_clr_set_upd_ops = {
129130
.get_parent = mtk_clk_mux_get_parent,
130131
.set_parent = mtk_clk_mux_set_parent_setclr_lock,
131132
};
133+
EXPORT_SYMBOL_GPL(mtk_mux_gate_clr_set_upd_ops);
132134

133135
static struct clk *mtk_clk_register_mux(const struct mtk_mux *mux,
134136
struct regmap *regmap,

0 commit comments

Comments
 (0)