summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2013-10-15 14:37:44 (GMT)
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-12-12 17:39:36 (GMT)
commit1ca5b7d95315c42cf0b78d33cd316e404a9f137c (patch)
treeb76c496f37607b3f98b455fd715959a24403f9fe /drivers
parentabfe7ae407c44de51f0fec8d87d448c7c27e1285 (diff)
downloadlinux-1ca5b7d95315c42cf0b78d33cd316e404a9f137c.tar.xz
crypto: atmel-sha - add sha information to the log
Depending on peripheral capabilities, print SHA information at the end of the probe function. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/atmel-sha.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c
index ecfdf72..0618be0 100644
--- a/drivers/crypto/atmel-sha.c
+++ b/drivers/crypto/atmel-sha.c
@@ -1469,7 +1469,9 @@ static int atmel_sha_probe(struct platform_device *pdev)
if (err)
goto err_algs;
- dev_info(dev, "Atmel SHA1/SHA256\n");
+ dev_info(dev, "Atmel SHA1/SHA256%s%s\n",
+ sha_dd->caps.has_sha224 ? "/SHA224" : "",
+ sha_dd->caps.has_sha_384_512 ? "/SHA384/SHA512" : "");
return 0;