summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-lan966x.c
diff options
context:
space:
mode:
authorClément Léger <clement.leger@bootlin.com>2022-06-17 12:33:06 +0200
committerStephen Boyd <sboyd@kernel.org>2022-10-03 23:14:02 +0200
commit8a977bbb17e2619ba06559f102cffd8678c3084e (patch)
tree7ea0f3c04dbbc32468874dd58f2ee66fef015edc /drivers/clk/clk-lan966x.c
parentclk: clk-xgene: simplify if-if to if-else (diff)
downloadlinux-8a977bbb17e2619ba06559f102cffd8678c3084e.tar.xz
linux-8a977bbb17e2619ba06559f102cffd8678c3084e.zip
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>
Diffstat (limited to 'drivers/clk/clk-lan966x.c')
-rw-r--r--drivers/clk/clk-lan966x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-lan966x.c b/drivers/clk/clk-lan966x.c
index 81cb90955d68..460e7216bfa1 100644
--- a/drivers/clk/clk-lan966x.c
+++ b/drivers/clk/clk-lan966x.c
@@ -286,7 +286,7 @@ static struct platform_driver lan966x_clk_driver = {
.of_match_table = lan966x_clk_dt_ids,
},
};
-builtin_platform_driver(lan966x_clk_driver);
+module_platform_driver(lan966x_clk_driver);
MODULE_AUTHOR("Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>");
MODULE_DESCRIPTION("LAN966X clock driver");