summaryrefslogtreecommitdiffstats
path: root/crypto/algboss.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/algboss.c')
-rw-r--r--crypto/algboss.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/algboss.c b/crypto/algboss.c
index 527b44d0af21..bb97cfb38836 100644
--- a/crypto/algboss.c
+++ b/crypto/algboss.c
@@ -296,7 +296,13 @@ static void __exit cryptomgr_exit(void)
296 BUG_ON(err); 296 BUG_ON(err);
297} 297}
298 298
299subsys_initcall(cryptomgr_init); 299/*
300 * This is arch_initcall() so that the crypto self-tests are run on algorithms
301 * registered early by subsys_initcall(). subsys_initcall() is needed for
302 * generic implementations so that they're available for comparison tests when
303 * other implementations are registered later by module_init().
304 */
305arch_initcall(cryptomgr_init);
300module_exit(cryptomgr_exit); 306module_exit(cryptomgr_exit);
301 307
302MODULE_LICENSE("GPL"); 308MODULE_LICENSE("GPL");