Merge to Fedora Core 2 kernel-2.6.8-1.521
[linux-2.6.git] / drivers / char / watchdog / w83627hf_wdt.c
index 0a21962..813c970 100644 (file)
@@ -144,10 +144,6 @@ wdt_set_heartbeat(int t)
 static ssize_t
 wdt_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
 {
-       /*  Can't seek (pwrite) on this device  */
-       if (ppos != &file->f_pos)
-               return -ESPIPE;
-
        if (count) {
                if (!nowayout) {
                        size_t i;
@@ -241,7 +237,7 @@ wdt_open(struct inode *inode, struct file *file)
         */
 
        wdt_ping();
-       return 0;
+       return nonseekable_open(inode, file);
 }
 
 static int