This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / char / watchdog / scx200_wdt.c
index ed1800c..bc61e82 100644 (file)
@@ -101,7 +101,7 @@ static int scx200_wdt_open(struct inode *inode, struct file *file)
                return -EBUSY;
        scx200_wdt_enable();
 
-       return nonseekable_open(inode, file);
+       return 0;
 }
 
 static int scx200_wdt_release(struct inode *inode, struct file *file)
@@ -135,6 +135,9 @@ static struct notifier_block scx200_wdt_notifier =
 static ssize_t scx200_wdt_write(struct file *file, const char __user *data,
                                     size_t len, loff_t *ppos)
 {
+       if (ppos != &file->f_pos)
+               return -ESPIPE;
+
        /* check for a magic close character */
        if (len)
        {