summaryrefslogtreecommitdiff
path: root/crypto/jitterentropy-kcapi.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-05-21 11:46:22 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2019-05-30 15:25:57 +0800
commit303312cf92a204a3fba5b0b8b67d86a410861810 (patch)
tree9a2a655909588c5d3efcc29a0dcc487afe0bd8a4 /crypto/jitterentropy-kcapi.c
parent299e27e01d55ff34a9f122ea6c9eebe8ae8a32f5 (diff)
downloadlinux-crypto-303312cf92a204a3fba5b0b8b67d86a410861810.tar.gz
linux-crypto-303312cf92a204a3fba5b0b8b67d86a410861810.zip
crypto: jitterentropy - change back to module_init()
"jitterentropy_rng" doesn't have any other implementations, nor is it tested by the crypto self-tests. So it was unnecessary to change it to subsys_initcall. Also it depends on the main clocksource being initialized, which may happen after subsys_initcall, causing this error: jitterentropy: Initialization failed with host not compliant with requirements: 2 Change it back to module_init(). Fixes: 23311b0ed61a ("crypto: run initcalls for generic implementations earlier") Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Eric Biggers <ebiggers@google.com> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/jitterentropy-kcapi.c')
-rw-r--r--crypto/jitterentropy-kcapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/jitterentropy-kcapi.c b/crypto/jitterentropy-kcapi.c
index 6ea1a270..787dccca 100644
--- a/crypto/jitterentropy-kcapi.c
+++ b/crypto/jitterentropy-kcapi.c
@@ -198,7 +198,7 @@ static void __exit jent_mod_exit(void)
crypto_unregister_rng(&jent_alg);
}
-subsys_initcall(jent_mod_init);
+module_init(jent_mod_init);
module_exit(jent_mod_exit);
MODULE_LICENSE("Dual BSD/GPL");