crypto: sahara - tfm->__crt_alg->cra_name directly
authorMarek Vasut <marex@denx.de>
Wed, 14 May 2014 09:41:03 +0000 (11:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 May 2014 13:03:16 +0000 (21:03 +0800)
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c

index 07a5987ce67d4783a1ffd3dbecc6151efb791d4a..164e1ec624e3c7e2a9ca6234a8100f98cec8894d 100644 (file)
@@ -728,7 +728,7 @@ static int sahara_aes_cbc_decrypt(struct ablkcipher_request *req)
 
 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);
 
        ctx->fallback = crypto_alloc_ablkcipher(name, 0,