]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/watchdog/omap_wdt.c
Merge omap-upstream
[linux-2.6-omap-h63xx.git] / drivers / char / watchdog / omap_wdt.c
index 7ffb28b6898597601926824e100cd6f4f47e52e4..772ebcc99e39b37ed43b30a7ea07fa48a9d93a90 100644 (file)
@@ -162,8 +162,7 @@ static int omap_wdt_open(struct inode *inode, struct file *file)
 
        omap_wdt_set_timeout(wdev);
        omap_wdt_enable(wdev);
-
-       return 0;
+       return nonseekable_open(inode, file);
 }
 
 static int omap_wdt_release(struct inode *inode, struct file *file)
@@ -225,7 +224,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));