From: Changhuang Liang Date: Tue, 29 Oct 2024 03:28:28 +0000 (-0700) Subject: clk: starfive: jh7110-pll: Mark the probe function as __init X-Git-Tag: v6.13-rc1~110^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dedceb2be8b4342c35967d5d47223631ef5d2eab;p=thirdparty%2Flinux.git 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 Link: https://lore.kernel.org/r/20241029032828.238706-1-changhuang.liang@starfivetech.com Reviewed-by: Emil Renner Berthing Reviewed-by: Xingyu Wu Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/starfive/clk-starfive-jh7110-pll.c b/drivers/clk/starfive/clk-starfive-jh7110-pll.c index 3598390e8fd08..56dc58a04f8a9 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;