Skip to content

Commit

Permalink
crypto: atmel-sha - add sha information to the log
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Ferre committed Dec 12, 2013
1 parent abfe7ae commit 1ca5b7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/crypto/atmel-sha.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1ca5b7d

Please sign in to comment.