Skip to content

Commit eee377b

Browse files
milesdotchenbebarino
authored andcommitted
clk: imx: use module_platform_driver
Replace builtin_platform_driver_probe with module_platform_driver_probe because CONFIG_CLK_IMX8QXP can be set to =m (kernel module). Fixes: e0d0d4d ("clk: imx8qxp: Support building i.MX8QXP clock driver as module") Cc: Fabio Estevam <[email protected]> Cc: Stephen Boyd <[email protected]> Signed-off-by: Miles Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Fabio Estevam <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent a1f0019 commit eee377b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/clk/imx/clk-imx8qxp-lpcg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static struct platform_driver imx8qxp_lpcg_clk_driver = {
370370
.probe = imx8qxp_lpcg_clk_probe,
371371
};
372372

373-
builtin_platform_driver(imx8qxp_lpcg_clk_driver);
373+
module_platform_driver(imx8qxp_lpcg_clk_driver);
374374

375375
MODULE_AUTHOR("Aisheng Dong <[email protected]>");
376376
MODULE_DESCRIPTION("NXP i.MX8QXP LPCG clock driver");

drivers/clk/imx/clk-imx8qxp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static struct platform_driver imx8qxp_clk_driver = {
308308
},
309309
.probe = imx8qxp_clk_probe,
310310
};
311-
builtin_platform_driver(imx8qxp_clk_driver);
311+
module_platform_driver(imx8qxp_clk_driver);
312312

313313
MODULE_AUTHOR("Aisheng Dong <[email protected]>");
314314
MODULE_DESCRIPTION("NXP i.MX8QXP clock driver");

0 commit comments

Comments
 (0)