]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
crypto: atmel-sha - add sha information to the log
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 15 Oct 2013 14:37:44 +0000 (16:37 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 12 Dec 2013 17:39:36 +0000 (18:39 +0100)
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>
drivers/crypto/atmel-sha.c

index ecfdf727cc360a0014a63cee1ce6f127d48896be..0618be06b9fb2402fb6b2ed6238e8d910ef19d9a 100644 (file)
@@ -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;