watchdog: txx9wdt: fix timeout
authorWim Van Sebroeck <wim@iguana.be>
Fri, 23 Mar 2012 10:48:22 +0000 (11:48 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 27 Mar 2012 18:16:13 +0000 (20:16 +0200)
timeout should be an unsigned int.
Set the timeout value properly in the watchdog_device struct so that
we don't get an faulty values for the WDIOC_GETTIMEOUT ioctl call.
Add check to see that timeout is a valid parameter after it is loaded
as a module.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>

No differences found