From 85537f846d9246c08ade1c48bafc365d086ad9d6 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Fri, 8 Oct 2010 14:30:02 +0000 Subject: [PATCH] serial2002: old 'ioctl' file operation removed in 2.6.36. --- comedi/drivers/serial2002.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comedi/drivers/serial2002.c b/comedi/drivers/serial2002.c index 3cb817a1..c0335f47 100644 --- a/comedi/drivers/serial2002.c +++ b/comedi/drivers/serial2002.c @@ -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; } -- 2.26.2