hw_random: ixp4xx: enable compile-testing
authorArnd Bergmann <arnd@arndb.de>
Sun, 25 Aug 2019 20:20:54 +0000 (22:20 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Jun 2021 13:31:05 +0000 (15:31 +0200)
The driver is almost portable already, it just needs to
include the new header for the cpu definition.

Cc: Deepak Saxena <dsaxena@plexity.net>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/ixp4xx-rng.c

index 1fe006f..f033a11 100644 (file)
@@ -152,7 +152,7 @@ config HW_RANDOM_VIA
 
 config HW_RANDOM_IXP4XX
        tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
-       depends on ARCH_IXP4XX
+       depends on ARCH_IXP4XX || COMPILE_TEST
        default HW_RANDOM
        help
          This driver provides kernel-side support for the Pseudo-Random
index beec162..3478102 100644 (file)
 #include <linux/init.h>
 #include <linux/bitops.h>
 #include <linux/hw_random.h>
+#include <linux/soc/ixp4xx/cpu.h>
 
 #include <asm/io.h>
-#include <mach/hardware.h>
-
 
 static int ixp4xx_rng_data_read(struct hwrng *rng, u32 *buffer)
 {