This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / sbus / char / cpwatchdog.c
index ad870a3..3237554 100644 (file)
@@ -324,7 +324,7 @@ static int wd_open(struct inode *inode, struct file *f)
                wd_dev.initialized = 1;
        }
 
-       return(nonseekable_open(inode, f));
+       return(0);
 }
 
 static int wd_release(struct inode *inode, struct file *file)
@@ -419,6 +419,9 @@ static ssize_t wd_write(struct file         *file,
                return(-EINVAL);
        }
 
+       if (ppos != &file->f_pos)
+               return -ESPIPE;
+
        if (count) {
                wd_pingtimer(pTimer);
                return 1;