aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/watchdog/at91sam9_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
index 9bd089ebb70f..65f469145950 100644
--- a/drivers/watchdog/at91sam9_wdt.c
+++ b/drivers/watchdog/at91sam9_wdt.c
@@ -51,7 +51,7 @@
51#define ticks_to_hz_rounddown(t) ((((t) + 1) * HZ) >> 8) 51#define ticks_to_hz_rounddown(t) ((((t) + 1) * HZ) >> 8)
52#define ticks_to_hz_roundup(t) (((((t) + 1) * HZ) + 255) >> 8) 52#define ticks_to_hz_roundup(t) (((((t) + 1) * HZ) + 255) >> 8)
53#define ticks_to_secs(t) (((t) + 1) >> 8) 53#define ticks_to_secs(t) (((t) + 1) >> 8)
54#define secs_to_ticks(s) (((s) << 8) - 1) 54#define secs_to_ticks(s) ((s) ? (((s) << 8) - 1) : 0)
55 55
56#define WDT_MR_RESET 0x3FFF2FFF 56#define WDT_MR_RESET 0x3FFF2FFF
57 57