blob: 29d13d7a6e65a9f7267dba46f2899481988330cf [file] [log] [blame]
From efeef85e782ee80a70a693b97e906f64c5475e0e Mon Sep 17 00:00:00 2001
From: Brendan Higgins <brendanhiggins@google.com>
Date: Wed, 11 Dec 2019 11:27:39 -0800
Subject: [PATCH] crypto: inside-secure - add unspecified HAS_IOMEM dependency
commit 6dc0e310623fdcb27a1486eb436f0118c45e95a5 upstream.
Currently CONFIG_CRYPTO_DEV_SAFEXCEL=y implicitly depends on
CONFIG_HAS_IOMEM=y; consequently, on architectures without IOMEM we get
the following build error:
ld: drivers/crypto/inside-secure/safexcel.o: in function `safexcel_probe':
drivers/crypto/inside-secure/safexcel.c:1692: undefined reference to `devm_platform_ioremap_resource'
Fix the build error by adding the unspecified dependency.
Reported-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 0af08081e305..1de2349f1be6 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -700,7 +700,7 @@ source "drivers/crypto/stm32/Kconfig"
config CRYPTO_DEV_SAFEXCEL
tristate "Inside Secure's SafeXcel cryptographic engine driver"
depends on OF
- depends on (ARM64 && ARCH_MVEBU) || (COMPILE_TEST && 64BIT)
+ depends on (ARM64 && ARCH_MVEBU) || (COMPILE_TEST && 64BIT) && HAS_IOMEM
select CRYPTO_AES
select CRYPTO_AUTHENC
select CRYPTO_BLKCIPHER
--
2.7.4