[WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY
[pandora-kernel.git] / drivers / char / watchdog / omap_wdt.c
index 3a0e061..719b066 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));