From 2bd901a116614be1d3f7623f39a023d381d3dec7 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Mon, 10 Aug 2009 00:04:35 +0200 Subject: [PATCH] --- yaml --- r: 163617 b: refs/heads/master c: 0ecc3bf47b09de24c6b1163ba6558448aadd31ce h: refs/heads/master i: 163615: e4dc0bb05e20baf71e64463eadeea4d95fbf4196 v: v3 --- [refs] | 2 +- trunk/drivers/watchdog/coh901327_wdt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3618aa92ba58..ebe79db92f6a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 502a0106b2cc31940f690dc6693fddfd3b97cab5 +refs/heads/master: 0ecc3bf47b09de24c6b1163ba6558448aadd31ce diff --git a/trunk/drivers/watchdog/coh901327_wdt.c b/trunk/drivers/watchdog/coh901327_wdt.c index aec7cefdef21..381026c0bd7b 100644 --- a/trunk/drivers/watchdog/coh901327_wdt.c +++ b/trunk/drivers/watchdog/coh901327_wdt.c @@ -110,7 +110,7 @@ static void coh901327_enable(u16 timeout) * Wait 3 32 kHz cycles for it to take effect */ freq = clk_get_rate(clk); - delay_ns = (1000000000 + freq - 1) / freq; /* Freq to ns and round up */ + delay_ns = DIV_ROUND_UP(1000000000, freq); /* Freq to ns and round up */ delay_ns = 3 * delay_ns; /* Wait 3 cycles */ ndelay(delay_ns); /* Enable the watchdog interrupt */