hwrng: ks-sa - Add dependency on IOMEM and OF
diff mbox series

Message ID 20201127054940.GA29627@gondor.apana.org.au
State Accepted
Commit a1315dcb7b6a7d3a78df848eed5b331a4b3ec28a
Headers show
Series
  • hwrng: ks-sa - Add dependency on IOMEM and OF
Related show

Commit Message

Herbert Xu Nov. 27, 2020, 5:49 a.m. UTC
Resent with fixed Subject line.

---8<---
This patch adds a dependency for KEYSTONE on HAS_IOMEM and OF to
prevent COMPILE_TEST build failures.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Patch
diff mbox series

diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index ab33a2e17cdf..9ff4fb3236f7 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -508,6 +508,7 @@  config HW_RANDOM_NPCM
 
 config HW_RANDOM_KEYSTONE
 	depends on ARCH_KEYSTONE || COMPILE_TEST
+	depends on HAS_IOMEM && OF
 	default HW_RANDOM
 	tristate "TI Keystone NETCP SA Hardware random number generator"
 	help