]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
crypto: aesni - Move back to module_init
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 Nov 2024 09:57:06 +0000 (17:57 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Nov 2024 11:52:51 +0000 (19:52 +0800)
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>
arch/x86/crypto/aesni-intel_glue.c

index b0dd83555499793211fd1f07c090a0afd02b40d6..fbf43482e1f5ecd697f8363bb8feb282a901561b 100644 (file)
@@ -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");