This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / isdn / hardware / eicon / divamnt.c
index 6b22a8a..1d66481 100644 (file)
@@ -151,6 +151,9 @@ maint_read(struct file *file, char __user *buf, size_t count, loff_t * off)
        int str_length;
        int *str_msg;
 
+       if (off != &file->f_pos)
+               return -ESPIPE;
+
        if (!file->private_data) {
                for (;;) {
                        while (
@@ -303,7 +306,7 @@ static int maint_open(struct inode *ino, struct file *filep)
 
        filep->private_data = NULL;
 
-       return nonseekable_open(ino, filep);
+       return (0);
 }
 
 static int maint_close(struct inode *ino, struct file *filep)