mirror of https://gitee.com/openkylin/linux.git
watchdog: tangox: Mark running watchdog correctly
A running watchdog is marked with WDOG_HW_RUNNING, not with WDOG_ACTIVE. WDOG_ACTIVE indicates that the watchdog device has been opened from user space. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
f9f535c1b7
commit
a3e376d26a
|
@ -170,7 +170,7 @@ static int tangox_wdt_probe(struct platform_device *pdev)
|
|||
* already running.
|
||||
*/
|
||||
if (readl(dev->base + WD_COUNTER)) {
|
||||
set_bit(WDOG_ACTIVE, &dev->wdt.status);
|
||||
set_bit(WDOG_HW_RUNNING, &dev->wdt.status);
|
||||
tangox_wdt_start(&dev->wdt);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue