aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/padlock-sha.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-05-14 05:41:02 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-05-22 09:03:16 -0400
commit1f4fe5a3fa38e68d29003697d230326ee59fad82 (patch)
treeab3e517ab640a503d65d92f251144399f55b27b8 /drivers/crypto/padlock-sha.c
parent5837af017e4b460a13f764ce7d4e0fc8e874e8ba (diff)
crypto: padlock - tfm->__crt_alg->cra_name directly
Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/padlock-sha.c')
-rw-r--r--drivers/crypto/padlock-sha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/padlock-sha.c b/drivers/crypto/padlock-sha.c
index 9266c0e25492..bace885634f2 100644
--- a/drivers/crypto/padlock-sha.c
+++ b/drivers/crypto/padlock-sha.c
@@ -211,7 +211,7 @@ static int padlock_sha256_final(struct shash_desc *desc, u8 *out)
211static int padlock_cra_init(struct crypto_tfm *tfm) 211static int padlock_cra_init(struct crypto_tfm *tfm)
212{ 212{
213 struct crypto_shash *hash = __crypto_shash_cast(tfm); 213 struct crypto_shash *hash = __crypto_shash_cast(tfm);
214 const char *fallback_driver_name = tfm->__crt_alg->cra_name; 214 const char *fallback_driver_name = crypto_tfm_alg_name(tfm);
215 struct padlock_sha_ctx *ctx = crypto_tfm_ctx(tfm); 215 struct padlock_sha_ctx *ctx = crypto_tfm_ctx(tfm);
216 struct crypto_shash *fallback_tfm; 216 struct crypto_shash *fallback_tfm;
217 int err = -ENOMEM; 217 int err = -ENOMEM;