[PATCH] arm: crypto: initialize digests earlier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We moved the digest init functions to coredevice_initcall level. Do
the same with the ARM specific digests aswell so that they are available
at the same time.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 arch/arm/crypto/sha1_glue.c   | 2 +-
 arch/arm/crypto/sha256_glue.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/crypto/sha1_glue.c b/arch/arm/crypto/sha1_glue.c
index 57cd9d1014..cc032f6af2 100644
--- a/arch/arm/crypto/sha1_glue.c
+++ b/arch/arm/crypto/sha1_glue.c
@@ -135,4 +135,4 @@ static int sha1_mod_init(void)
 {
 	return digest_algo_register(&m);
 }
-device_initcall(sha1_mod_init);
+coredevice_initcall(sha1_mod_init);
diff --git a/arch/arm/crypto/sha256_glue.c b/arch/arm/crypto/sha256_glue.c
index e649609a8e..d8a72a2cb9 100644
--- a/arch/arm/crypto/sha256_glue.c
+++ b/arch/arm/crypto/sha256_glue.c
@@ -189,7 +189,7 @@ static int sha224_digest_register(void)
 {
 	return digest_algo_register(&sha224);
 }
-device_initcall(sha224_digest_register);
+coredevice_initcall(sha224_digest_register);
 
 static struct digest_algo sha256 = {
 	.base = {
@@ -212,4 +212,4 @@ static int sha256_digest_register(void)
 {
 	return digest_algo_register(&sha256);
 }
-device_initcall(sha256_digest_register);
+coredevice_initcall(sha256_digest_register);
-- 
2.15.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux