diff options
Diffstat (limited to 'drivers/char/watchdog/softdog.c')
-rw-r--r-- | drivers/char/watchdog/softdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/softdog.c b/drivers/char/watchdog/softdog.c index ef8da517545a..4067e1f8a368 100644 --- a/drivers/char/watchdog/softdog.c +++ b/drivers/char/watchdog/softdog.c | |||
@@ -203,7 +203,7 @@ static int softdog_ioctl(struct inode *inode, struct file *file, | |||
203 | }; | 203 | }; |
204 | switch (cmd) { | 204 | switch (cmd) { |
205 | default: | 205 | default: |
206 | return -ENOIOCTLCMD; | 206 | return -ENOTTY; |
207 | case WDIOC_GETSUPPORT: | 207 | case WDIOC_GETSUPPORT: |
208 | return copy_to_user(argp, &ident, | 208 | return copy_to_user(argp, &ident, |
209 | sizeof(ident)) ? -EFAULT : 0; | 209 | sizeof(ident)) ? -EFAULT : 0; |