Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e901bed authored by Mika Westerberg's avatar Mika Westerberg Committed by Wim Van Sebroeck
Browse files

watchdog: ts72xx_wdt: disable watchdog at probe



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: default avatarMika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent ae44855a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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");