Skip to content

Commit

Permalink
watchdog: ep93xx_wdt: Fix timeout after conversion to watchdog core
Browse files Browse the repository at this point in the history
After the conversion of this driver to the watchdog core, I noticed that we
miss setting the initial timeout of the wdt device.
This results in a failure of the WDIOC_GETTIMEOUT ioctl call.

Reviewed-by: Mika Westerberg <mika.westerberg@iki.fi>
Tested-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Mika Westerberg authored and Wim Van Sebroeck committed Mar 27, 2012
1 parent e12a679 commit 59dcf1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/watchdog/ep93xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ static int __devinit ep93xx_wdt_probe(struct platform_device *pdev)

val = readl(mmio_base + EP93XX_WATCHDOG);
ep93xx_wdt_wdd.bootstatus = (val & 0x01) ? WDIOF_CARDRESET : 0;
ep93xx_wdt_wdd.timeout = timeout;

watchdog_set_nowayout(&ep93xx_wdt_wdd, nowayout);

Expand Down

0 comments on commit 59dcf1e

Please sign in to comment.