]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: coh901327_wdt.c: fix timeout
authorWim Van Sebroeck <wim@iguana.be>
Thu, 22 Mar 2012 19:42:16 +0000 (20:42 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 27 Mar 2012 18:15:57 +0000 (20:15 +0200)
commit3212f519fa435c911cb3b423f2d942c88fcbfe19
tree369ee13682bb2fafc13ba10347943e3ab74464f9
parenta2cbf47b7def8d6762a8dbb0ee9deebc2938f9e1
watchdog: coh901327_wdt.c: fix timeout

Set the timeout value properly so that we don't get faulty values
for the WDIOC_GETTIMEOUT iotcl. 'margin' should be an unsigned int.
Also add a check to see if margin is a valid parameter after it is
loaded as a module.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/watchdog/coh901327_wdt.c