summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-authenc.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2019-10-28 08:39:07 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-08 16:00:45 +0100
commit1520c72596dde7f22b8bd6bed3ef7df2b8b7ef39 (patch)
tree6851c1003212c908f1281a4008ad0fc87f60b06c /drivers/crypto/atmel-authenc.h
parentcrypto: amcc - restore CRYPTO_AES dependency (diff)
downloadlinux-1520c72596dde7f22b8bd6bed3ef7df2b8b7ef39.tar.xz
linux-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-authenc.h')
-rw-r--r--drivers/crypto/atmel-authenc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/atmel-authenc.h b/drivers/crypto/atmel-authenc.h
index cbd37a2edada..d6de810df44f 100644
--- a/drivers/crypto/atmel-authenc.h
+++ b/drivers/crypto/atmel-authenc.h
@@ -12,7 +12,7 @@
#ifndef __ATMEL_AUTHENC_H__
#define __ATMEL_AUTHENC_H__
-#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC
+#if IS_ENABLED(CONFIG_CRYPTO_DEV_ATMEL_AUTHENC)
#include <crypto/authenc.h>
#include <crypto/hash.h>