aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/mv_cesa.c
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-05-05 09:29:00 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2011-05-11 01:06:16 -0400
commit2a025f5dfcfaf7348fff6bda3ea007144f7eb47c (patch)
treea95c89d60fed1013660aeda2d2beac113a5a0622 /drivers/crypto/mv_cesa.c
parent811e6ed62347f1042ab1c560e5e2ebc8892f7f8f (diff)
crypto: mv_cesa - print a warning when registration of AES algos fail
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/mv_cesa.c')
-rw-r--r--drivers/crypto/mv_cesa.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c
index 4aac2941e4c6..c018cd0ac13b 100644
--- a/drivers/crypto/mv_cesa.c
+++ b/drivers/crypto/mv_cesa.c
@@ -1061,12 +1061,18 @@ static int mv_probe(struct platform_device *pdev)
1061 writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0); 1061 writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
1062 1062
1063 ret = crypto_register_alg(&mv_aes_alg_ecb); 1063 ret = crypto_register_alg(&mv_aes_alg_ecb);
1064 if (ret) 1064 if (ret) {
1065 printk(KERN_WARNING MV_CESA
1066 "Could not register aes-ecb driver\n");
1065 goto err_irq; 1067 goto err_irq;
1068 }
1066 1069
1067 ret = crypto_register_alg(&mv_aes_alg_cbc); 1070 ret = crypto_register_alg(&mv_aes_alg_cbc);
1068 if (ret) 1071 if (ret) {
1072 printk(KERN_WARNING MV_CESA
1073 "Could not register aes-cbc driver\n");
1069 goto err_unreg_ecb; 1074 goto err_unreg_ecb;
1075 }
1070 1076
1071 ret = crypto_register_ahash(&mv_sha1_alg); 1077 ret = crypto_register_ahash(&mv_sha1_alg);
1072 if (ret == 0) 1078 if (ret == 0)