On Mon, Aug 04, 2008 at 03:02:39PM +0800, Herbert Xu wrote:
> crypto: cryptomgr - Add test infrastructure

I've changed cryptomgr_init to a subsys_initcall so that when
it's built-in it gets called before any built-in algorithms try
to register themselves.

diff --git a/crypto/algboss.c b/crypto/algboss.c
index 0cc6913..4601e42 100644
--- a/crypto/algboss.c
+++ b/crypto/algboss.c
@@ -293,7 +293,7 @@ static void __exit cryptomgr_exit(void)
        testmgr_exit();
 }
 
-module_init(cryptomgr_init);
+subsys_initcall(cryptomgr_init);
 module_exit(cryptomgr_exit);
 
 MODULE_LICENSE("GPL");

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to