diff options
author | Martin Kaiser <martin@kaiser.cx> | 2023-05-19 19:11:18 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-05-24 13:12:33 +0300 |
commit | ac2cc2406e5d3b5898392dfc5e67db3af3ddfcf8 (patch) | |
tree | 70af249ce8a04390b24f4d2e3725d4d1b494dffd /drivers/char/hw_random/imx-rngc.c | |
parent | 44777807fbf2cbb0c5a6c049f382b428302e5200 (diff) | |
download | linux-ac2cc2406e5d3b5898392dfc5e67db3af3ddfcf8.tar.xz |
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 <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random/imx-rngc.c')
-rw-r--r-- | drivers/char/hw_random/imx-rngc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index 9c6988c658e2..c807fdbd22ba 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; |