2008-08-21 11:19:04

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH 4/5] crypto: cryptomgr - Add test infrastructure

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