return translated_ioctl(file, COMEDI_INSN, (unsigned long)insn);
}
-long comedi_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
+/* compat_ioctl file operation. */
+long comedi_compat_ioctl_(struct file *file, unsigned int cmd,
+ unsigned long arg)
{
int rc;
if (imajor(file->f_dentry->d_inode) != COMEDI_MAJOR) {
return -ENOTTY;
}
- rc = (int)comedi_compat_ioctl(file, cmd, arg);
+ rc = (int)comedi_compat_ioctl_(file, cmd, arg);
if (rc == -ENOIOCTLCMD) {
rc = -ENOTTY;
}
#ifdef HAVE_COMPAT_IOCTL
-extern long comedi_compat_ioctl(struct file *file, unsigned int cmd,
+extern long comedi_compat_ioctl_(struct file *file, unsigned int cmd,
unsigned long arg);
+#define comedi_compat_ioctl comedi_compat_ioctl_
#define comedi_register_ioctl32() do{}while(0)
#define comedi_unregister_ioctl32() do{}while(0)