summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-08-09 10:40:29 -0400
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-09-16 16:10:05 -0400
commitc9b8af43a7cddf4f0bd8f36a4242cf70e73097fa (patch)
tree2e074f756d97d6af877e0f5ee21e11dea51dc27f
parentb18f22d02ad1a4cfc0ca348766da651f9119cf44 (diff)
watchdog: pnx4008_wdt: allow compile-testing
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>
-rw-r--r--drivers/watchdog/Kconfig2
-rw-r--r--drivers/watchdog/pnx4008_wdt.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 8188963a405b..a45f9e3e442b 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -551,7 +551,7 @@ config OMAP_WATCHDOG
551 551
552config PNX4008_WATCHDOG 552config PNX4008_WATCHDOG
553 tristate "LPC32XX Watchdog" 553 tristate "LPC32XX Watchdog"
554 depends on ARCH_LPC32XX 554 depends on ARCH_LPC32XX || COMPILE_TEST
555 select WATCHDOG_CORE 555 select WATCHDOG_CORE
556 help 556 help
557 Say Y here if to include support for the watchdog timer 557 Say Y here if to include support for the watchdog timer
diff --git a/drivers/watchdog/pnx4008_wdt.c b/drivers/watchdog/pnx4008_wdt.c
index 7b446b696f2b..e0ea133c1690 100644
--- a/drivers/watchdog/pnx4008_wdt.c
+++ b/drivers/watchdog/pnx4008_wdt.c
@@ -30,7 +30,6 @@
30#include <linux/of.h> 30#include <linux/of.h>
31#include <linux/delay.h> 31#include <linux/delay.h>
32#include <linux/reboot.h> 32#include <linux/reboot.h>
33#include <mach/hardware.h>
34 33
35/* WatchDog Timer - Chapter 23 Page 207 */ 34/* WatchDog Timer - Chapter 23 Page 207 */
36 35