This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / char / watchdog / acquirewdt.c
index 8f30212..2febb25 100644 (file)
@@ -113,6 +113,10 @@ static void acq_stop(void)
 
 static ssize_t acq_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;
+
        /* See if we got the magic character 'V' and reload the timer */
        if(count) {
                if (!nowayout) {
@@ -202,7 +206,7 @@ static int acq_open(struct inode *inode, struct file *file)
 
        /* Activate */
        acq_keepalive();
-       return nonseekable_open(inode, file);
+       return 0;
 }
 
 static int acq_close(struct inode *inode, struct file *file)