From: Wim Van Sebroeck Date: Tue, 24 Jul 2007 21:55:06 +0000 (+0000) Subject: [WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1bf1496d41756496db2fcf4c8f1932b9762232f6;p=deliverable%2Flinux.git [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 --- 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));