Signed-off-by: Marek Vasut <ma...@denx.de>
---
 drivers/crypto/n2_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

NOTE: I didn't compile-test those, but the change should not break anything.
      If possible, please test on relevant hardware.

diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
index e1f0ab4..7263c10 100644
--- a/drivers/crypto/n2_core.c
+++ b/drivers/crypto/n2_core.c
@@ -356,7 +356,7 @@ static int n2_hash_async_finup(struct ahash_request *req)
 
 static int n2_hash_cra_init(struct crypto_tfm *tfm)
 {
-       const char *fallback_driver_name = tfm->__crt_alg->cra_name;
+       const char *fallback_driver_name = crypto_tfm_alg_name(tfm);
        struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
        struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash);
        struct crypto_ahash *fallback_tfm;
@@ -391,7 +391,7 @@ static void n2_hash_cra_exit(struct crypto_tfm *tfm)
 
 static int n2_hmac_cra_init(struct crypto_tfm *tfm)
 {
-       const char *fallback_driver_name = tfm->__crt_alg->cra_name;
+       const char *fallback_driver_name = crypto_tfm_alg_name(tfm);
        struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
        struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash);
        struct n2_hmac_alg *n2alg = n2_hmac_alg(tfm);
-- 
2.0.0.rc0

--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to