diff mbox series

clk: imx: use module_platform_driver

Message ID 20210902080211.7922-1-miles.chen@mediatek.com (mailing list archive)
State New, archived
Headers show
Series clk: imx: use module_platform_driver | expand

Commit Message

Miles Chen Sept. 2, 2021, 8:02 a.m. UTC
Replace builtin_platform_driver_probe with module_platform_driver_probe
because that CONFIG_CLK_IMX8QXP can be set to =m (kernel module).

Cc: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
---
 drivers/clk/imx/clk-imx8qxp-lpcg.c | 2 +-
 drivers/clk/imx/clk-imx8qxp.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Stephen Boyd Sept. 3, 2021, 6:33 p.m. UTC | #1
Quoting Miles Chen (2021-09-02 01:02:11)
> Replace builtin_platform_driver_probe with module_platform_driver_probe
> because that CONFIG_CLK_IMX8QXP can be set to =m (kernel module).
> 
> Cc: Stephen Boyd <sboyd@kernel.org>
> Signed-off-by: Miles Chen <miles.chen@mediatek.com>
> ---

Should it have a fixes tag?
Miles Chen Sept. 4, 2021, 2:58 p.m. UTC | #2
On Fri, 2021-09-03 at 11:33 -0700, Stephen Boyd wrote:
> Quoting Miles Chen (2021-09-02 01:02:11)
> > Replace builtin_platform_driver_probe with
> > module_platform_driver_probe
> > because that CONFIG_CLK_IMX8QXP can be set to =m (kernel module).
> > 
> > Cc: Stephen Boyd <sboyd@kernel.org>
> > Signed-off-by: Miles Chen <miles.chen@mediatek.com>
> > ---
> 
> Should it have a fixes tag?

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

Patch

diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c
index d3e905cf867d..b23758083ce5 100644
--- a/drivers/clk/imx/clk-imx8qxp-lpcg.c
+++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c
@@ -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 <aisheng.dong@nxp.com>");
 MODULE_DESCRIPTION("NXP i.MX8QXP LPCG clock driver");
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
index c53a688d8ccc..40a2efb1329b 100644
--- a/drivers/clk/imx/clk-imx8qxp.c
+++ b/drivers/clk/imx/clk-imx8qxp.c
@@ -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 <aisheng.dong@nxp.com>");
 MODULE_DESCRIPTION("NXP i.MX8QXP clock driver");