[PATCH] arm: crypto: initialize digests earlier

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 5 23:34:54 PST 2018


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 at pengutronix.de>
---
 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




More information about the barebox mailing list