summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/padlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/padlock.c')
-rw-r--r--drivers/crypto/padlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/crypto/padlock.c b/drivers/crypto/padlock.c
index ce581684f4b..d6d7dd5bb98 100644
--- a/drivers/crypto/padlock.c
+++ b/drivers/crypto/padlock.c
@@ -26,13 +26,13 @@ static int __init padlock_init(void)
{
int success = 0;
- if (crypto_alg_available("aes-padlock", 0))
+ if (crypto_has_cipher("aes-padlock", 0, 0))
success++;
- if (crypto_alg_available("sha1-padlock", 0))
+ if (crypto_has_hash("sha1-padlock", 0, 0))
success++;
- if (crypto_alg_available("sha256-padlock", 0))
+ if (crypto_has_hash("sha256-padlock", 0, 0))
success++;
if (!success) {