summaryrefslogtreecommitdiff
path: root/linux/crypto/sha1_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/crypto/sha1_generic.c')
-rw-r--r--linux/crypto/sha1_generic.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/linux/crypto/sha1_generic.c b/linux/crypto/sha1_generic.c
index b0b9cd15..31b5d12e 100644
--- a/linux/crypto/sha1_generic.c
+++ b/linux/crypto/sha1_generic.c
@@ -78,15 +78,8 @@ static struct shash_alg alg = {
}
};
+__attribute__((constructor(110)))
static int __init sha1_generic_mod_init(void)
{
return crypto_register_shash(&alg);
}
-
-static void __exit sha1_generic_mod_fini(void)
-{
- crypto_unregister_shash(&alg);
-}
-
-module_init(sha1_generic_mod_init);
-module_exit(sha1_generic_mod_fini);