aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-05-14 05:40:57 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-05-22 09:03:13 -0400
commitd207a38cbc520ebac3c945dac3d355edfa04f5e3 (patch)
tree842a36f91ca3499298eb3920db4981956bf20829 /drivers/crypto
parent701bcbc1892f408aa22b0190f33dd6de063e76aa (diff)
crypto: geode - Don't use tfm->__crt_alg->cra_name directly
Use a standard accessor instead of directly digging into a structure. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/geode-aes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 8e482cefc77b..fe538e5287a5 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -255,7 +255,7 @@ geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
255 255
256static int fallback_init_cip(struct crypto_tfm *tfm) 256static int fallback_init_cip(struct crypto_tfm *tfm)
257{ 257{
258 const char *name = tfm->__crt_alg->cra_name; 258 const char *name = crypto_tfm_alg_name(tfm);
259 struct geode_aes_op *op = crypto_tfm_ctx(tfm); 259 struct geode_aes_op *op = crypto_tfm_ctx(tfm);
260 260
261 op->fallback.cip = crypto_alloc_cipher(name, 0, 261 op->fallback.cip = crypto_alloc_cipher(name, 0,
@@ -365,7 +365,7 @@ geode_cbc_encrypt(struct blkcipher_desc *desc,
365 365
366static int fallback_init_blk(struct crypto_tfm *tfm) 366static int fallback_init_blk(struct crypto_tfm *tfm)
367{ 367{
368 const char *name = tfm->__crt_alg->cra_name; 368 const char *name = crypto_tfm_alg_name(tfm);
369 struct geode_aes_op *op = crypto_tfm_ctx(tfm); 369 struct geode_aes_op *op = crypto_tfm_ctx(tfm);
370 370
371 op->fallback.blk = crypto_alloc_blkcipher(name, 0, 371 op->fallback.blk = crypto_alloc_blkcipher(name, 0,