projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4477780
)
hwrng: imx-rngc - mark the probe function as __init
author
Martin Kaiser
<martin@kaiser.cx>
Fri, 19 May 2023 16:11:18 +0000
(18:11 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 24 May 2023 10:12:33 +0000
(18:12 +0800)
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>
drivers/char/hw_random/imx-rngc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/hw_random/imx-rngc.c
b/drivers/char/hw_random/imx-rngc.c
index 9c6988c658e243700a875779a65d3945502f9394..c807fdbd22bad3bd5043cbbd022a769e65d7a8b5 100644
(file)
--- 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;