From 0197c1c49ef1ff386b2ebb6d3b0fc85a8e174b5c Mon Sep 17 00:00:00 2001 From: Wim Van Sebroeck Date: Wed, 29 Feb 2012 20:20:58 +0100 Subject: 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 --- drivers/watchdog/jz4740_wdt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/watchdog/jz4740_wdt.c') diff --git a/drivers/watchdog/jz4740_wdt.c b/drivers/watchdog/jz4740_wdt.c index 28af416c3fbf..978615ef899d 100644 --- a/drivers/watchdog/jz4740_wdt.c +++ b/drivers/watchdog/jz4740_wdt.c @@ -109,6 +109,7 @@ static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev, writeb(0x1, drvdata->base + JZ_REG_WDT_COUNTER_ENABLE); + wdt_dev->timeout = new_timeout; return 0; } -- cgit v1.2.3-55-g7522