This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / char / watchdog / wdt285.c
index d3fced3..b61d9e1 100644 (file)
@@ -97,7 +97,6 @@ static int watchdog_open(struct inode *inode, struct file *file)
 
        ret = 0;
 #endif
-       nonseekable_open(inode, file);
        return ret;
 }
 
@@ -118,6 +117,10 @@ static int watchdog_release(struct inode *inode, struct file *file)
 static ssize_t
 watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos)
 {
+       /* Can't seek (pwrite) on this device  */
+       if (ppos != &file->f_pos)
+               return -ESPIPE;
+
        /*
         *      Refresh the timer.
         */