diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2013-03-11 18:32:50 +0100 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2013-03-12 12:06:43 +0100 |
commit | 5021209f5a94e862c6b2915e4e6993b4931364fe (patch) | |
tree | cf843aeebc63f71cbfdaca509922bfb1f63b9255 /src/include | |
parent | db2e3aa2578a931924f5bd269b0279bd403263ea (diff) | |
download | coreboot-5021209f5a94e862c6b2915e4e6993b4931364fe.tar.xz |
watchdog.h: Fix compile time error on disabling watchdog handling
There's a compile time error that we didn't catch since the
board defaults as used by the build bot won't expose it.
Just make watchdog_off() a no-op statement so there aren't any
stray semicolons in the preprocessor output.
Change-Id: Ib5595e7e8aa91ca54bc8ca30a39b72875c961464
Reported-by: 'lautriv' on irc.freenode.net/#coreboot
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/2627
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/watchdog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/watchdog.h b/src/include/watchdog.h index d6267375f5..b94cd4dcd0 100644 --- a/src/include/watchdog.h +++ b/src/include/watchdog.h @@ -4,7 +4,7 @@ #if CONFIG_USE_WATCHDOG_ON_BOOT void watchdog_off(void); #else -#define watchdog_off() +#define watchdog_off() while(0) {} #endif #endif /* WATCHDOG_H */ |