hwrng: ks-sa - Add dependency on IOMEM and OF
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Nov 2020 05:49:40 +0000 (16:49 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Dec 2020 07:13:14 +0000 (18:13 +1100)
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>
drivers/char/hw_random/Kconfig

index eb0d51a..17c1df8 100644 (file)
@@ -495,6 +495,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