Skip to content

Commit 7cbe5cb

Browse files
AngeloGioacchino Del Regnowens
authored andcommitted
clk: mediatek: Export required symbols to compile clk drivers as module
In order to compile the clock drivers for various MediaTek SoCs as modules, it is necessary to export a few functions from the MediaTek specific clocks (and reset) libraries. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Miles Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 85b2181 commit 7cbe5cb

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

drivers/clk/mediatek/clk-apmixed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,6 @@ struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name,
9898

9999
return &tx->hw;
100100
}
101+
EXPORT_SYMBOL_GPL(mtk_clk_register_ref2usb_tx);
101102

102103
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-cpumux.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ int mtk_clk_register_cpumuxes(struct device_node *node,
150150

151151
return PTR_ERR(hw);
152152
}
153+
EXPORT_SYMBOL_GPL(mtk_clk_register_cpumuxes);
153154

154155
void mtk_clk_unregister_cpumuxes(const struct mtk_composite *clks, int num,
155156
struct clk_hw_onecell_data *clk_data)
@@ -166,5 +167,6 @@ void mtk_clk_unregister_cpumuxes(const struct mtk_composite *clks, int num,
166167
clk_data->hws[mux->id] = ERR_PTR(-ENOENT);
167168
}
168169
}
170+
EXPORT_SYMBOL_GPL(mtk_clk_unregister_cpumuxes);
169171

170172
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mtk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ int mtk_clk_simple_probe(struct platform_device *pdev)
459459
mtk_free_clk_data(clk_data);
460460
return r;
461461
}
462+
EXPORT_SYMBOL_GPL(mtk_clk_simple_probe);
462463

463464
int mtk_clk_simple_remove(struct platform_device *pdev)
464465
{
@@ -472,5 +473,6 @@ int mtk_clk_simple_remove(struct platform_device *pdev)
472473

473474
return 0;
474475
}
476+
EXPORT_SYMBOL_GPL(mtk_clk_simple_remove);
475477

476478
MODULE_LICENSE("GPL");

drivers/clk/mediatek/reset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,6 @@ int mtk_register_reset_controller_with_dev(struct device *dev,
228228

229229
return 0;
230230
}
231+
EXPORT_SYMBOL_GPL(mtk_register_reset_controller_with_dev);
231232

232233
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)