* Remove the redundant check for pwrite(), given that the open() routine
already invokes nonseekable_open().
* The WDIOF_CARDRESET flag can only be used when you can read this status
via the WDIOC_GETSTATUS ioctl call.
* Add the mandatory WDIOC_GETBOOTSTATUS ioctl call.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
davinci_wdt_write(struct file *file, const char *data, size_t len,
loff_t *ppos)
{
- /* Can't seek (pwrite) on this device */
- if (ppos != &file->f_pos)
- return -ESPIPE;
-
if (len)
wdt_service();
}
static struct watchdog_info ident = {
- .options = WDIOF_CARDRESET | WDIOF_KEEPALIVEPING,
+ .options = WDIOF_KEEPALIVEPING,
.identity = "DaVinci Watchdog",
};
break;
case WDIOC_GETSTATUS:
+ case WDIOC_GETBOOTSTATUS:
ret = put_user(0, (int *)arg);
break;