Commit 2a025f5d authored by Phil Sutter's avatar Phil Sutter Committed by Herbert Xu

crypto: mv_cesa - print a warning when registration of AES algos fail

Signed-off-by: default avatarPhil Sutter <phil.sutter@viprinet.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 811e6ed6
...@@ -1061,12 +1061,18 @@ static int mv_probe(struct platform_device *pdev) ...@@ -1061,12 +1061,18 @@ static int mv_probe(struct platform_device *pdev)
writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0); writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
ret = crypto_register_alg(&mv_aes_alg_ecb); 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; goto err_irq;
}
ret = crypto_register_alg(&mv_aes_alg_cbc); 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; goto err_unreg_ecb;
}
ret = crypto_register_ahash(&mv_sha1_alg); ret = crypto_register_ahash(&mv_sha1_alg);
if (ret == 0) if (ret == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment