This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / char / watchdog / w83627hf_wdt.c
index 813c970..0a21962 100644 (file)
@@ -144,6 +144,10 @@ 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;
@@ -237,7 +241,7 @@ wdt_open(struct inode *inode, struct file *file)
         */
 
        wdt_ping();
-       return nonseekable_open(inode, file);
+       return 0;
 }
 
 static int