]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
watchdog: pnx4008_wdt: allow compile-testing
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Aug 2019 14:40:29 +0000 (16:40 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 16 Sep 2019 20:10:05 +0000 (22:10 +0200)
The only thing that prevents building this driver on other
platforms is the mach/hardware.h include, which is not actually
used here at all, so remove the line and allow CONFIG_COMPILE_TEST.

Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20190809144043.476786-4-arnd@arndb.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig
drivers/watchdog/pnx4008_wdt.c

index 8188963a405b4769e731e4b5a8761e318a37a819..a45f9e3e442b0392733ce03395f4e79ef7b3d162 100644 (file)
@@ -551,7 +551,7 @@ config OMAP_WATCHDOG
 
 config PNX4008_WATCHDOG
        tristate "LPC32XX Watchdog"
-       depends on ARCH_LPC32XX
+       depends on ARCH_LPC32XX || COMPILE_TEST
        select WATCHDOG_CORE
        help
          Say Y here if to include support for the watchdog timer
index 7b446b696f2bb24a23c94d7c4e7b22394e71fe0b..e0ea133c1690e09410a8deb8615985e8d4fb6530 100644 (file)
@@ -30,7 +30,6 @@
 #include <linux/of.h>
 #include <linux/delay.h>
 #include <linux/reboot.h>
-#include <mach/hardware.h>
 
 /* WatchDog Timer - Chapter 23 Page 207 */