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>
This commit is contained in:
Patrick Georgi 2013-03-11 18:32:50 +01:00
parent db2e3aa257
commit 5021209f5a
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
#if CONFIG_USE_WATCHDOG_ON_BOOT #if CONFIG_USE_WATCHDOG_ON_BOOT
void watchdog_off(void); void watchdog_off(void);
#else #else
#define watchdog_off() #define watchdog_off() while(0) {}
#endif #endif
#endif /* WATCHDOG_H */ #endif /* WATCHDOG_H */