diff options
| author | Eric Biggers <ebiggers@google.com> | 2019-05-21 14:46:22 -0400 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-30 03:25:57 -0400 |
| commit | 9c5b34c2f7eb01976a5aa29ccdb786a634e3d1e0 (patch) | |
| tree | c1f64d8dc5281dfa646e4b40fb2bd218a7afd192 | |
| parent | 357d065a44cdd77ed5ff35155a989f2a763e96ef (diff) | |
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: c4741b230597 ("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>
| -rw-r--r-- | crypto/jitterentropy-kcapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/jitterentropy-kcapi.c b/crypto/jitterentropy-kcapi.c index 6ea1a270b8dc..787dccca3715 100644 --- a/crypto/jitterentropy-kcapi.c +++ b/crypto/jitterentropy-kcapi.c | |||
| @@ -198,7 +198,7 @@ static void __exit jent_mod_exit(void) | |||
| 198 | crypto_unregister_rng(&jent_alg); | 198 | crypto_unregister_rng(&jent_alg); |
| 199 | } | 199 | } |
| 200 | 200 | ||
| 201 | subsys_initcall(jent_mod_init); | 201 | module_init(jent_mod_init); |
| 202 | module_exit(jent_mod_exit); | 202 | module_exit(jent_mod_exit); |
| 203 | 203 | ||
| 204 | MODULE_LICENSE("Dual BSD/GPL"); | 204 | MODULE_LICENSE("Dual BSD/GPL"); |
