Browse Source

crypto: sahara - tfm->__crt_alg->cra_name directly

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Marek Vasut 11 years ago
parent
commit
efa59e2e91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/crypto/sahara.c

+ 1 - 1
drivers/crypto/sahara.c

@@ -728,7 +728,7 @@ static int sahara_aes_cbc_decrypt(struct ablkcipher_request *req)
 
 
 static int sahara_aes_cra_init(struct crypto_tfm *tfm)
 static int sahara_aes_cra_init(struct crypto_tfm *tfm)
 {
 {
-	const char *name = tfm->__crt_alg->cra_name;
+	const char *name = crypto_tfm_alg_name(tfm);
 	struct sahara_ctx *ctx = crypto_tfm_ctx(tfm);
 	struct sahara_ctx *ctx = crypto_tfm_ctx(tfm);
 
 
 	ctx->fallback = crypto_alloc_ablkcipher(name, 0,
 	ctx->fallback = crypto_alloc_ablkcipher(name, 0,