Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH] clk: starfive: jh7110-pll: Mark the probe function as __init
@ 2024-10-29  3:28 Changhuang Liang
  2024-10-29 11:10 ` Emil Renner Berthing
  2024-10-30 20:23 ` Stephen Boyd
  0 siblings, 2 replies; 4+ messages in thread
From: Changhuang Liang @ 2024-10-29  3:28 UTC (permalink / raw)
  To: Emil Renner Berthing, Hal Feng, Xingyu Wu, Michael Turquette,
	Stephen Boyd
  Cc: Changhuang Liang, linux-clk, linux-kernel

Mark the jh7110_pll_probe function as __init.

There's no need to support hotplugging in the jh7110-pll driver. We use
builtin_platform_driver_probe, the probe function will only be called at
startup.

Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
---
 drivers/clk/starfive/clk-starfive-jh7110-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/starfive/clk-starfive-jh7110-pll.c b/drivers/clk/starfive/clk-starfive-jh7110-pll.c
index 3598390e8fd0..56dc58a04f8a 100644
--- a/drivers/clk/starfive/clk-starfive-jh7110-pll.c
+++ b/drivers/clk/starfive/clk-starfive-jh7110-pll.c
@@ -453,7 +453,7 @@ static struct clk_hw *jh7110_pll_get(struct of_phandle_args *clkspec, void *data
 	return ERR_PTR(-EINVAL);
 }
 
-static int jh7110_pll_probe(struct platform_device *pdev)
+static int __init jh7110_pll_probe(struct platform_device *pdev)
 {
 	struct jh7110_pll_priv *priv;
 	unsigned int idx;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* RE: [PATCH] clk: starfive: jh7110-pll: Mark the probe function as __init
@ 2024-10-30  1:33 Xingyu Wu
  0 siblings, 0 replies; 4+ messages in thread
From: Xingyu Wu @ 2024-10-30  1:33 UTC (permalink / raw)
  To: Changhuang Liang, Emil Renner Berthing, Hal Feng,
	Michael Turquette, Stephen Boyd
  Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org

On 29/10/2024 11:28, Changhuang Liang wrote:
> Subject: [PATCH] clk: starfive: jh7110-pll: Mark the probe function as __init
> 
> Mark the jh7110_pll_probe function as __init.
> 
> There's no need to support hotplugging in the jh7110-pll driver. We use
> builtin_platform_driver_probe, the probe function will only be called at startup.
> 
> Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
> ---
>  drivers/clk/starfive/clk-starfive-jh7110-pll.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/starfive/clk-starfive-jh7110-pll.c b/drivers/clk/starfive/clk-
> starfive-jh7110-pll.c
> index 3598390e8fd0..56dc58a04f8a 100644
> --- a/drivers/clk/starfive/clk-starfive-jh7110-pll.c
> +++ b/drivers/clk/starfive/clk-starfive-jh7110-pll.c
> @@ -453,7 +453,7 @@ static struct clk_hw *jh7110_pll_get(struct
> of_phandle_args *clkspec, void *data
>  	return ERR_PTR(-EINVAL);
>  }
> 
> -static int jh7110_pll_probe(struct platform_device *pdev)
> +static int __init jh7110_pll_probe(struct platform_device *pdev)
>  {
>  	struct jh7110_pll_priv *priv;
>  	unsigned int idx;
> --

Reviewed-by: Xingyu Wu <xingyu.wu@starfivetech.com>

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

end of thread, other threads:[~2024-10-30 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29  3:28 [PATCH] clk: starfive: jh7110-pll: Mark the probe function as __init Changhuang Liang
2024-10-29 11:10 ` Emil Renner Berthing
2024-10-30 20:23 ` Stephen Boyd
  -- strict thread matches above, loose matches on Subject: below --
2024-10-30  1:33 Xingyu Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox