summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-04-30 16:17:02 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-05-05 18:20:44 +0800
commitef93f1562803cd7bb8159e3abedaf7f47dce4e35 (patch)
treee6155c94c5aeffe795cf5bf69b2001f615f1cf19 /arch/powerpc
parent89490e6b80c53bf7783fe183a2fda8d0944f52d2 (diff)
Revert "crypto: run initcalls for generic implementations earlier"
This reverts commit c4741b23059794bd99beef0f700103b0d983b3fd. Crypto API self-tests no longer run at registration time and now occur either at late_initcall or upon the first use. Therefore the premise of the above commit no longer exists. Revert it and subsequent additions of subsys_initcall and arch_initcall. Note that lib/crypto calls will stay at subsys_initcall (or rather downgraded from arch_initcall) because they may need to occur before Crypto API registration. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/lib/crypto/chacha-p10-glue.c2
-rw-r--r--arch/powerpc/lib/crypto/poly1305-p10-glue.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/lib/crypto/chacha-p10-glue.c b/arch/powerpc/lib/crypto/chacha-p10-glue.c
index 351ed409f9b2..51daeaf5d26e 100644
--- a/arch/powerpc/lib/crypto/chacha-p10-glue.c
+++ b/arch/powerpc/lib/crypto/chacha-p10-glue.c
@@ -87,7 +87,7 @@ static int __init chacha_p10_init(void)
static_branch_enable(&have_p10);
return 0;
}
-arch_initcall(chacha_p10_init);
+subsys_initcall(chacha_p10_init);
static void __exit chacha_p10_exit(void)
{
diff --git a/arch/powerpc/lib/crypto/poly1305-p10-glue.c b/arch/powerpc/lib/crypto/poly1305-p10-glue.c
index 50ac802220e0..16c2a8316696 100644
--- a/arch/powerpc/lib/crypto/poly1305-p10-glue.c
+++ b/arch/powerpc/lib/crypto/poly1305-p10-glue.c
@@ -76,7 +76,7 @@ static int __init poly1305_p10_init(void)
static_branch_enable(&have_p10);
return 0;
}
-arch_initcall(poly1305_p10_init);
+subsys_initcall(poly1305_p10_init);
static void __exit poly1305_p10_exit(void)
{