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

Commit 31ecad65 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Guenter Roeck
Browse files

intel-mid_wdt: make sure watchdog is not running at startup



Make sure that the watchdog is not running after loading
and before it is started by opening /dev/watchdog.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9eff1140
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -151,6 +151,9 @@ static int mid_wdt_probe(struct platform_device *pdev)
		return ret;
	}

	/* Make sure the watchdog is not running */
	wdt_stop(wdt_dev);

	ret = watchdog_register_device(wdt_dev);
	if (ret) {
		dev_err(&pdev->dev, "error registering watchdog device\n");