crypto: jitterentropy - change back to module_init()
authorEric Biggers <ebiggers@google.com>
Tue, 21 May 2019 18:46:22 +0000 (11:46 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:25:57 +0000 (15:25 +0800)
commit9c5b34c2f7eb01976a5aa29ccdb786a634e3d1e0
treec1f64d8dc5281dfa646e4b40fb2bd218a7afd192
parent357d065a44cdd77ed5ff35155a989f2a763e96ef
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>
crypto/jitterentropy-kcapi.c