aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/Kconfig
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2021-01-30 14:55:38 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-02-05 14:32:05 +1100
commit63b8ee4f548c36658c2854d353270b3474d45aeb (patch)
tree20fd0015c002f4d1d059c0f7cd00d8b3f9ac2f4b /drivers/crypto/Kconfig
parentcrypto: octeontx2 - Add dependency on NET_VENDOR_MARVELL (diff)
downloadlinux-dev-63b8ee4f548c36658c2854d353270b3474d45aeb.tar.xz
linux-dev-63b8ee4f548c36658c2854d353270b3474d45aeb.zip
crypto: crypto4xx - Avoid linking failure with HW_RANDOM=m
It is currently possible to build CONFIG_HW_RANDOM_PPC4XX=y with CONFIG_HW_RANDOM=m which would lead to the inability of linking with devm_hwrng_{register,unregister}. We cannot have the framework modular and the consumer of that framework built-in, so make that dependency explicit. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/Kconfig')
-rw-r--r--drivers/crypto/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index cc29bc3f6a6c..e3e37a715fa7 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -348,7 +348,7 @@ config CRYPTO_DEV_PPC4XX
config HW_RANDOM_PPC4XX
bool "PowerPC 4xx generic true random number generator support"
- depends on CRYPTO_DEV_PPC4XX && HW_RANDOM
+ depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
default y
help
This option provides the kernel-side support for the TRNG hardware