diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2012-02-29 20:20:58 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-03-27 20:08:09 +0200 |
commit | 0197c1c49ef1ff386b2ebb6d3b0fc85a8e174b5c (patch) | |
tree | 266ad74d44c332e27eac61070f7287051035136f /drivers/watchdog/wm831x_wdt.c | |
parent | watchdog: watchdog_dev: Let the driver update the timeout field on set_timeou... (diff) | |
download | linux-0197c1c49ef1ff386b2ebb6d3b0fc85a8e174b5c.tar.xz linux-0197c1c49ef1ff386b2ebb6d3b0fc85a8e174b5c.zip |
watchdog: fix set_timeout operations
Since we changed the behaviour of the set_timeout operation in the
watchdog API, we need to change the allready converted drivers so
that they update the timeout field at the end of the set_timeout
operation.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/wm831x_wdt.c')
-rw-r--r-- | drivers/watchdog/wm831x_wdt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/watchdog/wm831x_wdt.c b/drivers/watchdog/wm831x_wdt.c index b3e8a62f27a9..b1815c5ed7a7 100644 --- a/drivers/watchdog/wm831x_wdt.c +++ b/drivers/watchdog/wm831x_wdt.c @@ -163,6 +163,8 @@ static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev, ret); } + wdt_dev->timeout = timeout; + return ret; } |