Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
arch/x86/crypto/aesni-intel_glue.c
··· 1747 1747 unregister_avx_algs(); 1748 1748 } 1749 1749 1750 - late_initcall(aesni_init); 1750 + module_init(aesni_init); 1751 1751 module_exit(aesni_exit); 1752 1752 1753 1753 MODULE_DESCRIPTION("AES cipher and modes, optimized with AES-NI or VAES instructions");