serial2002: old 'ioctl' file operation removed in 2.6.36.
authorIan Abbott <abbotti@mev.co.uk>
Fri, 8 Oct 2010 14:30:02 +0000 (14:30 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 8 Oct 2010 14:30:02 +0000 (14:30 +0000)
comedi/drivers/serial2002.c

index 3cb817a1ac05f99a0a3ce8621e857260e4caae95..c0335f47ac95c33c184993b5655520bff20a86ad 100644 (file)
@@ -122,9 +122,11 @@ static long tty_ioctl(struct file *f, unsigned op, unsigned long param)
                return f->f_op->unlocked_ioctl(f, op, param);
        }
 #endif    
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
        if (f->f_op->ioctl) {
                return f->f_op->ioctl(f->f_dentry->d_inode, f, op, param);
        }
+#endif
        return -ENOSYS;
 }