crypto: cryptd - Use subsys_initcall to prevent races with aesni
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2011 08:11:23 +0000 (16:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 20 Aug 2011 08:08:03 +0000 (16:08 +0800)
commitb2bac6acf86d05d8af0499f37d91ecac15722803
tree98208400b0ff6976fdcb4945cd32468fa00b002e
parent4619b6bdb71362d95810f475cc61a6de9d0b1904
crypto: cryptd - Use subsys_initcall to prevent races with aesni

As cryptd is depeneded on by other algorithms such as aesni-intel,
it needs to be registered before them.  When everything is built
as modules, this occurs naturally.  However, for this to work when
they are built-in, we need to use subsys_initcall in cryptd.

Tested-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cryptd.c