aboutsummaryrefslogtreecommitdiff
path: root/drivers/watchdog/asm9260_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/asm9260_wdt.c')
-rw-r--r--drivers/watchdog/asm9260_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/asm9260_wdt.c b/drivers/watchdog/asm9260_wdt.c
index 186fac4cccf5..7dd0da644a7f 100644
--- a/drivers/watchdog/asm9260_wdt.c
+++ b/drivers/watchdog/asm9260_wdt.c
@@ -82,7 +82,7 @@ static unsigned int asm9260_wdt_gettimeleft(struct watchdog_device *wdd)
counter = ioread32(priv->iobase + HW_WDTV);
- return DIV_ROUND_CLOSEST(counter, priv->wdt_freq);
+ return counter / priv->wdt_freq;
}
static int asm9260_wdt_updatetimeout(struct watchdog_device *wdd)