aboutsummaryrefslogtreecommitdiff
path: root/drivers/watchdog/mixcomwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/mixcomwd.c')
-rw-r--r--drivers/watchdog/mixcomwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/watchdog/mixcomwd.c b/drivers/watchdog/mixcomwd.c
index 2248a818759..407b025cb10 100644
--- a/drivers/watchdog/mixcomwd.c
+++ b/drivers/watchdog/mixcomwd.c
@@ -208,6 +208,10 @@ static long mixcomwd_ioctl(struct file *file,
};
switch (cmd) {
+ case WDIOC_GETSUPPORT:
+ if (copy_to_user(argp, &ident, sizeof(ident)))
+ return -EFAULT;
+ break;
case WDIOC_GETSTATUS:
status = mixcomwd_opened;
if (!nowayout)
@@ -215,10 +219,6 @@ static long mixcomwd_ioctl(struct file *file,
return put_user(status, p);
case WDIOC_GETBOOTSTATUS:
return put_user(0, p);
- case WDIOC_GETSUPPORT:
- if (copy_to_user(argp, &ident, sizeof(ident)))
- return -EFAULT;
- break;
case WDIOC_KEEPALIVE:
mixcomwd_ping();
break;