This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / isdn / hardware / eicon / divasproc.c
index 55e83d1..192fae4 100644 (file)
@@ -63,6 +63,8 @@ divas_read(struct file *file, char __user *buf, size_t count, loff_t * off)
 
        if (*off)
                return 0;
+       if (off != &file->f_pos)
+               return -ESPIPE;
 
        divas_get_version(tmpbuf);
        if (copy_to_user(buf + len, &tmpbuf, strlen(tmpbuf)))
@@ -105,7 +107,7 @@ static unsigned int divas_poll(struct file *file, poll_table * wait)
 
 static int divas_open(struct inode *inode, struct file *file)
 {
-       return nonseekable_open(inode, file);
+       return (0);
 }
 
 static int divas_close(struct inode *inode, struct file *file)