summaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/watchdog/wdt.c')
-rw-r--r--drivers/char/watchdog/wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/wdt.c b/drivers/char/watchdog/wdt.c
index 70be81e39a6..13f23f4a223 100644
--- a/drivers/char/watchdog/wdt.c
+++ b/drivers/char/watchdog/wdt.c
@@ -341,7 +341,7 @@ static int wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
switch(cmd)
{
default:
- return -ENOIOCTLCMD;
+ return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;