[WATCHDOG] bfin: fix max timeout calculation
authorMike Frysinger <vapier@gentoo.org>
Tue, 16 Feb 2010 00:32:25 +0000 (19:32 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 21 Feb 2010 19:16:30 +0000 (19:16 +0000)
commit3dae93ec3ee1fceec69f40ef9b97892ce62ba7a5
tree71901f55ab30c1108043d80b93c462c15c2746a8
parentaea187c46f7d03ce985e55eb1398d0776a15b928
[WATCHDOG] bfin: fix max timeout calculation

Relying on overflow/wrap around isn't exact because if you wrap far
enough, you get back to "valid" values.

Reported-by: Thorsten Pohlmann <pohlmann@tetronik.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: stable <stable@kernel.org>
drivers/watchdog/bfin_wdt.c