Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <angelogioacchino.delregno@collabora.com>
Reviewed-by: Miles Chen <miles.chen@mediatek.com>
Link: https://lore.kernel.org/r/20220921091455.41327-7-angelogioacchino.delregno@collabora.com
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>

authored by

AngeloGioacchino Del Regno and committed by
Chen-Yu Tsai
7cbe5cb2 85b2181c

+6
+1
drivers/clk/mediatek/clk-apmixed.c
··· 98 98 99 99 return &tx->hw; 100 100 } 101 + EXPORT_SYMBOL_GPL(mtk_clk_register_ref2usb_tx); 101 102 102 103 MODULE_LICENSE("GPL");
+2
drivers/clk/mediatek/clk-cpumux.c
··· 150 150 151 151 return PTR_ERR(hw); 152 152 } 153 + EXPORT_SYMBOL_GPL(mtk_clk_register_cpumuxes); 153 154 154 155 void mtk_clk_unregister_cpumuxes(const struct mtk_composite *clks, int num, 155 156 struct clk_hw_onecell_data *clk_data) ··· 167 166 clk_data->hws[mux->id] = ERR_PTR(-ENOENT); 168 167 } 169 168 } 169 + EXPORT_SYMBOL_GPL(mtk_clk_unregister_cpumuxes); 170 170 171 171 MODULE_LICENSE("GPL");
+2
drivers/clk/mediatek/clk-mtk.c
··· 459 459 mtk_free_clk_data(clk_data); 460 460 return r; 461 461 } 462 + EXPORT_SYMBOL_GPL(mtk_clk_simple_probe); 462 463 463 464 int mtk_clk_simple_remove(struct platform_device *pdev) 464 465 { ··· 473 472 474 473 return 0; 475 474 } 475 + EXPORT_SYMBOL_GPL(mtk_clk_simple_remove); 476 476 477 477 MODULE_LICENSE("GPL");
+1
drivers/clk/mediatek/reset.c
··· 228 228 229 229 return 0; 230 230 } 231 + EXPORT_SYMBOL_GPL(mtk_register_reset_controller_with_dev); 231 232 232 233 MODULE_LICENSE("GPL");