This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / sbus / char / riowatchdog.c
index 7f8e109..0e8d06e 100644 (file)
@@ -116,7 +116,6 @@ static void riowd_starttimer(void)
 
 static int riowd_open(struct inode *inode, struct file *filp)
 {
-       nonseekable_open(inode, filp);
        return 0;
 }
 
@@ -185,6 +184,9 @@ static int riowd_ioctl(struct inode *inode, struct file *filp,
 
 static ssize_t riowd_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
 {
+       if (ppos != &file->f_pos)
+               return -ESPIPE;
+
        if (count) {
                riowd_pingtimer();
                return 1;