|
@@ -546,14 +546,15 @@ static long ds1374_wdt_ioctl(struct file *file, unsigned int cmd,
|
|
if (options & WDIOS_DISABLECARD) {
|
|
if (options & WDIOS_DISABLECARD) {
|
|
pr_info("disable watchdog\n");
|
|
pr_info("disable watchdog\n");
|
|
ds1374_wdt_disable();
|
|
ds1374_wdt_disable();
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
if (options & WDIOS_ENABLECARD) {
|
|
if (options & WDIOS_ENABLECARD) {
|
|
pr_info("enable watchdog\n");
|
|
pr_info("enable watchdog\n");
|
|
ds1374_wdt_settimeout(wdt_margin);
|
|
ds1374_wdt_settimeout(wdt_margin);
|
|
ds1374_wdt_ping();
|
|
ds1374_wdt_ping();
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
-
|
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
return -ENOTTY;
|
|
return -ENOTTY;
|