From: Martin Kaiser Date: Fri, 19 May 2023 16:11:18 +0000 (+0200) Subject: hwrng: imx-rngc - mark the probe function as __init X-Git-Tag: v6.6.7~2481^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac2cc2406e5d3b5898392dfc5e67db3af3ddfcf8;p=platform%2Fkernel%2Flinux-starfive.git hwrng: imx-rngc - mark the probe function as __init Mark the imx_rngc_probe function as __init. There's no need to support hotplugging in the imx-rngc driver. We use module_platform_driver_probe, the probe function will only be called at startup. Signed-off-by: Martin Kaiser Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index 9c6988c..c807fdb 100644 --- a/drivers/char/hw_random/imx-rngc.c +++ b/drivers/char/hw_random/imx-rngc.c @@ -224,7 +224,7 @@ static void imx_rngc_cleanup(struct hwrng *rng) imx_rngc_irq_mask_clear(rngc); } -static int imx_rngc_probe(struct platform_device *pdev) +static int __init imx_rngc_probe(struct platform_device *pdev) { struct imx_rngc *rngc; int ret;