crypto: mv_cesa - print a warning when registration of AES algos fail
authorPhil Sutter <phil.sutter@viprinet.com>
Thu, 5 May 2011 13:29:00 +0000 (15:29 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 May 2011 05:06:16 +0000 (15:06 +1000)
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mv_cesa.c

index 4aac2941e4c6d3ee21e261bf2cb98cd57f7a5f85..c018cd0ac13bc8dbd61ef181f7bae1e7932934fb 100644 (file)
@@ -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)