]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY
authorWim Van Sebroeck <wim@iguana.be>
Tue, 24 Jul 2007 21:55:06 +0000 (21:55 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 24 Jul 2007 21:57:52 +0000 (21:57 +0000)
The default value for an unknown ioctl call is -ENOTTY.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/char/watchdog/omap_wdt.c

index 3a0e0613424ad1605311b7007d84b54e3eda61f4..719b066f73c41cd8cbf655d7f2afa0c7ad81e774 100644 (file)
@@ -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));