Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Changhuang Liang and committed by
Stephen Boyd
dedceb2b 00f8f70a

+1 -1
+1 -1
drivers/clk/starfive/clk-starfive-jh7110-pll.c
··· 453 453 return ERR_PTR(-EINVAL); 454 454 } 455 455 456 - static int jh7110_pll_probe(struct platform_device *pdev) 456 + static int __init jh7110_pll_probe(struct platform_device *pdev) 457 457 { 458 458 struct jh7110_pll_priv *priv; 459 459 unsigned int idx;