aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <[email protected]>2023-03-20 10:24:35 +0000
committerLuis Chamberlain <[email protected]>2023-04-13 13:13:51 -0700
commitb71e2a69d16c8d12c2b1aadeffd59ed1920d50e9 (patch)
treea8eb343b439f7c0c3401e4dc6455551d15fcffa0
parent41a98c68f2abc67b88568b7a25fd547989d2c92f (diff)
crypto: blake2s: remove module_init and module.h inclusion
Now this can no longer be built as a module, drop all remaining module-related code as well. Signed-off-by: Nick Alcock <[email protected]> Suggested-by: Herbert Xu <[email protected]> Cc: Luis Chamberlain <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Hitomi Hasegawa <[email protected]> Cc: Herbert Xu <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Luis Chamberlain <[email protected]>
-rw-r--r--arch/x86/crypto/blake2s-glue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/crypto/blake2s-glue.c b/arch/x86/crypto/blake2s-glue.c
index 0df9ec15643a..0313f9673f56 100644
--- a/arch/x86/crypto/blake2s-glue.c
+++ b/arch/x86/crypto/blake2s-glue.c
@@ -8,7 +8,6 @@
#include <linux/types.h>
#include <linux/jump_label.h>
#include <linux/kernel.h>
-#include <linux/module.h>
#include <linux/sizes.h>
#include <asm/cpufeature.h>
@@ -72,5 +71,4 @@ static int __init blake2s_mod_init(void)
return 0;
}
-module_init(blake2s_mod_init);
-
+subsys_initcall(blake2s_mod_init);