diff options
Diffstat (limited to 'crypto/algboss.c')
-rw-r--r-- | crypto/algboss.c | 8 |
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 | ||
299 | subsys_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 | */ | ||
305 | arch_initcall(cryptomgr_init); | ||
300 | module_exit(cryptomgr_exit); | 306 | module_exit(cryptomgr_exit); |
301 | 307 | ||
302 | MODULE_LICENSE("GPL"); | 308 | MODULE_LICENSE("GPL"); |