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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by Andy Shevchenko and committed by Guenter Roeck 31ecad65 9eff1140

+3
+3
drivers/watchdog/intel-mid_wdt.c
··· 151 151 return ret; 152 152 } 153 153 154 + /* Make sure the watchdog is not running */ 155 + wdt_stop(wdt_dev); 156 + 154 157 ret = watchdog_register_device(wdt_dev); 155 158 if (ret) { 156 159 dev_err(&pdev->dev, "error registering watchdog device\n");