Skip to content

Commit

Permalink
watchdog: ts72xx_wdt: disable watchdog at probe
Browse files Browse the repository at this point in the history
Since it may be already enabled by bootloader or some other utility. This patch
makes sure that the watchdog is disabled before any userspace daemon opens the
device. It is also required by the watchdog API.

Signed-off-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 Sep 15, 2010
1 parent ae44855 commit 0e901be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/watchdog/ts72xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ static __devinit int ts72xx_wdt_probe(struct platform_device *pdev)
wdt->pdev = pdev;
mutex_init(&wdt->lock);

/* make sure that the watchdog is disabled */
ts72xx_wdt_stop(wdt);

error = misc_register(&ts72xx_wdt_miscdev);
if (error) {
dev_err(&pdev->dev, "failed to register miscdev\n");
Expand Down

0 comments on commit 0e901be

Please sign in to comment.