Digests have dependencies and are needed for state which initializes at device_initcall level. To make sure the digests are available for state register them earlier, at coredevice_initcall level. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- crypto/hmac.c | 2 +- crypto/sha1.c | 2 +- crypto/sha2.c | 2 +- crypto/sha4.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/hmac.c b/crypto/hmac.c index 05b9b50f12..37b270df7a 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -196,4 +196,4 @@ static int digest_hmac_initcall(void) return 0; } -crypto_initcall(digest_hmac_initcall); +coredevice_initcall(digest_hmac_initcall); diff --git a/crypto/sha1.c b/crypto/sha1.c index cbde4d28e4..f4b2ded0b0 100644 --- a/crypto/sha1.c +++ b/crypto/sha1.c @@ -303,4 +303,4 @@ static int sha1_digest_register(void) { return digest_algo_register(&m); } -device_initcall(sha1_digest_register); +coredevice_initcall(sha1_digest_register); diff --git a/crypto/sha2.c b/crypto/sha2.c index cb0f11c77e..c62ddb8d25 100644 --- a/crypto/sha2.c +++ b/crypto/sha2.c @@ -372,4 +372,4 @@ static int sha256_digest_register(void) return digest_algo_register(&m256); } -device_initcall(sha256_digest_register); +coredevice_initcall(sha256_digest_register); diff --git a/crypto/sha4.c b/crypto/sha4.c index 4ce37b73e4..aad8081fa5 100644 --- a/crypto/sha4.c +++ b/crypto/sha4.c @@ -292,4 +292,4 @@ static int sha512_digest_register(void) return digest_algo_register(&m512); } -device_initcall(sha512_digest_register); +coredevice_initcall(sha512_digest_register); -- 2.11.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox