Skip to contentSkip to conversation

clk: imx: use module_platform_driver

PATCH Superseded Miles Chen 2 participants 3 messages Sep 2, 2021 – Sep 4, 2021

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Miles Chen

author
#0 lore raw

PATCH 1/1 clk: imx: use module_platform_driver

Replace builtin_platform_driver_probe with module_platform_driver_probe because that CONFIG_CLK_IMX8QXP can be set to =m (kernel module).

---
 drivers/clk/imx/clk-imx8qxp-lpcg.c | 2 +-
 drivers/clk/imx/clk-imx8qxp.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/clk/imx/clk-imx8qxp-lpcg.c +1 -1
index d3e905cf867d..b23758083ce5 100644
@@ -370,7 +370,7 @@ static struct platform_driver imx8qxp_lpcg_clk_driver = {
 	.probe = imx8qxp_lpcg_clk_probe,
 };
 
-builtin_platform_driver(imx8qxp_lpcg_clk_driver);
+module_platform_driver(imx8qxp_lpcg_clk_driver);
 
 MODULE_AUTHOR("Aisheng Dong <[email protected]>");
 MODULE_DESCRIPTION("NXP i.MX8QXP LPCG clock driver");
drivers/clk/imx/clk-imx8qxp.c +1 -1
index c53a688d8ccc..40a2efb1329b 100644
@@ -308,7 +308,7 @@ static struct platform_driver imx8qxp_clk_driver = {
 	},
 	.probe = imx8qxp_clk_probe,
 };
-builtin_platform_driver(imx8qxp_clk_driver);
+module_platform_driver(imx8qxp_clk_driver);
 
 MODULE_AUTHOR("Aisheng Dong <[email protected]>");
 MODULE_DESCRIPTION("NXP i.MX8QXP clock driver");
Signature · 1 line
2.18.0
maintainer
#1 lore raw

Quoting Miles Chen (2021-09-02 01:02:11)

Quoted 6 lines

Replace builtin_platform_driver_probe with module_platform_driver_probe because that CONFIG_CLK_IMX8QXP can be set to =m (kernel module).

---

Should it have a fixes tag?

author
#2 lore raw
Quoted 10 lines · Stephen Boyd

Quoting Miles Chen (2021-09-02 01:02:11)

Quoted 7 lines

Replace builtin_platform_driver_probe with module_platform_driver_probe
because that CONFIG_CLK_IMX8QXP can be set to =m (kernel module).

---

Should it have a fixes tag?

ok, I will add a fixes tags in the next patch.