summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2024-11-07 17:57:06 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2024-11-15 19:52:51 +0800
commitdccd55892bbbcac5b6320745c809bd310b843f2f (patch)
treea90bf4f3631e7e7c4ef2e0ecbb70530cd606342e
parent0594ad6184598b5b9a6eb5619785f37f825e6ffd (diff)
downloadlwn-dccd55892bbbcac5b6320745c809bd310b843f2f.tar.gz
lwn-dccd55892bbbcac5b6320745c809bd310b843f2f.zip
crypto: aesni - Move back to module_init
This patch reverts commit 0fbafd06bdde938884f7326548d3df812b267c3c ("crypto: aesni - fix failing setkey for rfc4106-gcm-aesni") by moving the aesni init function back to module_init from late_initcall. The original patch was needed because tests were synchronous. This is no longer the case so there is no need to postpone the registration. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--arch/x86/crypto/aesni-intel_glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c
index b0dd83555499..fbf43482e1f5 100644
--- a/arch/x86/crypto/aesni-intel_glue.c
+++ b/arch/x86/crypto/aesni-intel_glue.c
@@ -1747,7 +1747,7 @@ static void __exit aesni_exit(void)
unregister_avx_algs();
}
-late_initcall(aesni_init);
+module_init(aesni_init);
module_exit(aesni_exit);
MODULE_DESCRIPTION("AES cipher and modes, optimized with AES-NI or VAES instructions");