X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fwatchdog%2Fomap_wdt.c;h=8a937530c0e5f1835f722d590397f7ccb3e0afd4;hb=9c44811bd33d5b07d1eb5ee60a5e227971a11ffe;hp=2b4acb86c191eec0c4a23f0541eb0c8d33079445;hpb=fa514fbc57419505d0e9423dbb8742f2775f882e;p=pandora-kernel.git diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 2b4acb86c191..8a937530c0e5 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -150,6 +150,13 @@ static int omap_wdt_open(struct inode *inode, struct file *file) pm_runtime_get_sync(wdev->dev); + /* + * Make sure the watchdog is disabled. This is unfortunately required + * because writing to various registers with the watchdog running has no + * effect. + */ + omap_wdt_disable(wdev); + /* initialize prescaler */ while (__raw_readl(base + OMAP_WATCHDOG_WPS) & 0x01) cpu_relax();