summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-sha.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2019-10-28 15:39:07 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-08 23:00:45 +0800
commit1520c72596dde7f22b8bd6bed3ef7df2b8b7ef39 (patch)
tree6851c1003212c908f1281a4008ad0fc87f60b06c /drivers/crypto/atmel-sha.c
parent298b4c604008025b134bc6fccbc4018449945d60 (diff)
downloadlinux-stable-1520c72596dde7f22b8bd6bed3ef7df2b8b7ef39.tar.gz
linux-stable-1520c72596dde7f22b8bd6bed3ef7df2b8b7ef39.tar.bz2
linux-stable-1520c72596dde7f22b8bd6bed3ef7df2b8b7ef39.zip
crypto: atmel - Fix authenc support when it is set to m
As it is if CONFIG_CRYPTO_DEV_ATMEL_AUTHENC is set to m it is in effect disabled. This patch fixes it by using IS_ENABLED instead of ifdef. Fixes: 89a82ef87e01 ("crypto: atmel-authenc - add support to...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-sha.c')
-rw-r--r--drivers/crypto/atmel-sha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c
index 84cb8748a795..d32626458e67 100644
--- a/drivers/crypto/atmel-sha.c
+++ b/drivers/crypto/atmel-sha.c
@@ -2212,7 +2212,7 @@ static struct ahash_alg sha_hmac_algs[] = {
},
};
-#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC
+#if IS_ENABLED(CONFIG_CRYPTO_DEV_ATMEL_AUTHENC)
/* authenc functions */
static int atmel_sha_authenc_init2(struct atmel_sha_dev *dd);