mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-05-02 18:15:03 -04:00
Revert "crypto: run initcalls for generic implementations earlier"
This reverts commit c4741b2305.
Crypto API self-tests no longer run at registration time and now
occur either at late_initcall or upon the first use.
Therefore the premise of the above commit no longer exists. Revert
it and subsequent additions of subsys_initcall and arch_initcall.
Note that lib/crypto calls will stay at subsys_initcall (or rather
downgraded from arch_initcall) because they may need to occur
before Crypto API registration.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -224,7 +224,7 @@ static int __init crypto_sha256_mod_init(void)
|
||||
num_algs /= 2;
|
||||
return crypto_register_shashes(algs, ARRAY_SIZE(algs));
|
||||
}
|
||||
subsys_initcall(crypto_sha256_mod_init);
|
||||
module_init(crypto_sha256_mod_init);
|
||||
|
||||
static void __exit crypto_sha256_mod_exit(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user