summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-05-05 15:29:00 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-05-11 15:06:16 +1000
commit2a025f5dfcfaf7348fff6bda3ea007144f7eb47c (patch)
treea95c89d60fed1013660aeda2d2beac113a5a0622
parent811e6ed62347f1042ab1c560e5e2ebc8892f7f8f (diff)
downloadop-kernel-dev-2a025f5dfcfaf7348fff6bda3ea007144f7eb47c.zip
op-kernel-dev-2a025f5dfcfaf7348fff6bda3ea007144f7eb47c.tar.gz
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>
-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 4aac294..c018cd0 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)
writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
ret = crypto_register_alg(&mv_aes_alg_ecb);
- if (ret)
+ if (ret) {
+ printk(KERN_WARNING MV_CESA
+ "Could not register aes-ecb driver\n");
goto err_irq;
+ }
ret = crypto_register_alg(&mv_aes_alg_cbc);
- if (ret)
+ if (ret) {
+ printk(KERN_WARNING MV_CESA
+ "Could not register aes-cbc driver\n");
goto err_unreg_ecb;
+ }
ret = crypto_register_ahash(&mv_sha1_alg);
if (ret == 0)
OpenPOWER on IntegriCloud