Skip to content

Commit 8a977bb

Browse files
clementlegerbebarino
authored andcommitted
clk: allow building lan966x as a module
Set the COMMON_CLK_LAN966X option as a tristate and switch from builtin_platform_driver() to module_platform_driver() to allow building and using this driver as a module. Signed-off-by: Clément Léger <clement.leger@bootlin.com> Link: https://lore.kernel.org/r/20220617103306.489466-1-clement.leger@bootlin.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent ae039f0 commit 8a977bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/clk/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ config COMMON_CLK_GEMINI
249249
platform, also known as SL3516 or CS3516.
250250

251251
config COMMON_CLK_LAN966X
252-
bool "Generic Clock Controller driver for LAN966X SoC"
252+
tristate "Generic Clock Controller driver for LAN966X SoC"
253253
depends on HAS_IOMEM
254254
depends on OF
255255
depends on SOC_LAN966 || COMPILE_TEST

drivers/clk/clk-lan966x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static struct platform_driver lan966x_clk_driver = {
286286
.of_match_table = lan966x_clk_dt_ids,
287287
},
288288
};
289-
builtin_platform_driver(lan966x_clk_driver);
289+
module_platform_driver(lan966x_clk_driver);
290290

291291
MODULE_AUTHOR("Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>");
292292
MODULE_DESCRIPTION("LAN966X clock driver");

0 commit comments

Comments
 (0)