linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: imx: use module_platform_driver
@ 2021-09-02  8:02 Miles Chen
  2021-09-03 18:33 ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: Miles Chen @ 2021-09-02  8:02 UTC (permalink / raw)
  To: Abel Vesa, Michael Turquette, Stephen Boyd, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team
  Cc: linux-clk, linux-arm-kernel, linux-kernel, linux-mediatek,
	wsd_upstream, Miles Chen

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(-)

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");
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: imx: use module_platform_driver
  2021-09-02  8:02 [PATCH] clk: imx: use module_platform_driver Miles Chen
@ 2021-09-03 18:33 ` Stephen Boyd
  2021-09-04 14:58   ` Miles Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2021-09-03 18:33 UTC (permalink / raw)
  To: Abel Vesa, Fabio Estevam, Michael Turquette, Miles Chen,
	NXP Linux Team, Pengutronix Kernel Team, Sascha Hauer, Shawn Guo
  Cc: linux-clk, linux-arm-kernel, linux-kernel, linux-mediatek,
	wsd_upstream, Miles Chen

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: imx: use module_platform_driver
  2021-09-03 18:33 ` Stephen Boyd
@ 2021-09-04 14:58   ` Miles Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Miles Chen @ 2021-09-04 14:58 UTC (permalink / raw)
  To: Stephen Boyd, Abel Vesa, Fabio Estevam, Michael Turquette,
	NXP Linux Team, Pengutronix Kernel Team, Sascha Hauer, Shawn Guo
  Cc: linux-clk, linux-arm-kernel, linux-kernel, linux-mediatek, wsd_upstream

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-04 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02  8:02 [PATCH] clk: imx: use module_platform_driver Miles Chen
2021-09-03 18:33 ` Stephen Boyd
2021-09-04 14:58   ` Miles Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).