diff options
author | Wim Van Sebroeck | 2007-07-24 23:55:06 +0200 |
---|---|---|
committer | Wim Van Sebroeck | 2007-07-24 23:57:52 +0200 |
commit | 1bf1496d41756496db2fcf4c8f1932b9762232f6 (patch) | |
tree | b981be4014ce94329aacec6fabf391ed11ec2277 /drivers/char/watchdog | |
parent | [WATCHDOG] Return value of nonseekable_open (diff) | |
download | kernel-qcow2-linux-1bf1496d41756496db2fcf4c8f1932b9762232f6.tar.gz kernel-qcow2-linux-1bf1496d41756496db2fcf4c8f1932b9762232f6.tar.xz kernel-qcow2-linux-1bf1496d41756496db2fcf4c8f1932b9762232f6.zip |
[WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY
The default value for an unknown ioctl call is -ENOTTY.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/char/watchdog')
-rw-r--r-- | drivers/char/watchdog/omap_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/omap_wdt.c b/drivers/char/watchdog/omap_wdt.c index 3a0e0613424a..719b066f73c4 100644 --- a/drivers/char/watchdog/omap_wdt.c +++ b/drivers/char/watchdog/omap_wdt.c @@ -197,7 +197,7 @@ omap_wdt_ioctl(struct inode *inode, struct file *file, switch (cmd) { default: - return -ENOIOCTLCMD; + return -ENOTTY; case WDIOC_GETSUPPORT: return copy_to_user((struct watchdog_info __user *)arg, &ident, sizeof(ident)); |