]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: starfive: jh7110-pll: Mark the probe function as __init
authorChanghuang Liang <changhuang.liang@starfivetech.com>
Tue, 29 Oct 2024 03:28:28 +0000 (20:28 -0700)
committerStephen Boyd <sboyd@kernel.org>
Wed, 30 Oct 2024 20:23:51 +0000 (13:23 -0700)
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>
Link: https://lore.kernel.org/r/20241029032828.238706-1-changhuang.liang@starfivetech.com
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Reviewed-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/starfive/clk-starfive-jh7110-pll.c

index 3598390e8fd0893db14fd5494e7b87c9df98591f..56dc58a04f8a9fca6fc10f7769d2aff8b0ce0367 100644 (file)
@@ -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;