aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/watchdog/iTCO_wdt.c2
-rw-r--r--drivers/char/watchdog/pnx4008_wdt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/watchdog/iTCO_wdt.c b/drivers/char/watchdog/iTCO_wdt.c
index ebd3fc8000e5..8f89948832fc 100644
--- a/drivers/char/watchdog/iTCO_wdt.c
+++ b/drivers/char/watchdog/iTCO_wdt.c
@@ -494,7 +494,7 @@ static int iTCO_wdt_ioctl (struct inode *inode, struct file *file,
494 } 494 }
495 495
496 default: 496 default:
497 return -ENOIOCTLCMD; 497 return -ENOTTY;
498 } 498 }
499} 499}
500 500
diff --git a/drivers/char/watchdog/pnx4008_wdt.c b/drivers/char/watchdog/pnx4008_wdt.c
index e7f0450a939d..db2731ba88e3 100644
--- a/drivers/char/watchdog/pnx4008_wdt.c
+++ b/drivers/char/watchdog/pnx4008_wdt.c
@@ -184,7 +184,7 @@ static int
184pnx4008_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, 184pnx4008_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
185 unsigned long arg) 185 unsigned long arg)
186{ 186{
187 int ret = -ENOIOCTLCMD; 187 int ret = -ENOTTY;
188 int time; 188 int time;
189 189
190 switch (cmd) { 190 switch (cmd) {