]> 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)
commit886b7d85e6f157700eb966e12cda9e5b08328c0b
tree369ee13682bb2fafc13ba10347943e3ab74464f9
parent8db5d305cc964e586d99021787a302f1dd2a5bea
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