]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: move watchdog config check to Makefile
authorMike Frysinger <vapier@gentoo.org>
Thu, 12 Nov 2009 23:42:07 +0000 (18:42 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 17 Jan 2010 14:17:26 +0000 (09:17 -0500)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
cpu/blackfin/Makefile
cpu/blackfin/watchdog.c

index 5eef6a3063aa99d271be1a34414c90d13a4b26db..211b8d5450b9b7088ab3dea337cf4705bf2b0e88 100644 (file)
@@ -24,7 +24,7 @@ COBJS-y  += os_log.o
 COBJS-y  += reset.o
 COBJS-y  += serial.o
 COBJS-y  += traps.o
-COBJS-y  += watchdog.o
+COBJS-$(CONFIG_HW_WATCHDOG)  += watchdog.o
 
 ifeq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
 COBJS-y  += initcode.o
index b47c6b688d41bc8ba7806b89345114d0953d35b7..1886bda0ae633c15c6f8485b174e7e4f32c1495f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * watchdog.c - driver for Blackfin on-chip watchdog
  *
- * Copyright (c) 2007-2008 Analog Devices Inc.
+ * Copyright (c) 2007-2009 Analog Devices Inc.
  *
  * Licensed under the GPL-2 or later.
  */
@@ -10,7 +10,6 @@
 #include <watchdog.h>
 #include <asm/blackfin.h>
 
-#ifdef CONFIG_HW_WATCHDOG
 void hw_watchdog_reset(void)
 {
        bfin_write_WDOG_STAT(0);
@@ -22,4 +21,3 @@ void hw_watchdog_init(void)
        hw_watchdog_reset();
        bfin_write_WDOG_CTL(0x0);
 }
-#endif