compat_ioctl: move more drivers to compat_ptr_ioctl
[linux-2.6-microblaze.git] / drivers / scsi / 3w-xxxx.c
index 2b1e0d5..fb6444d 100644 (file)
@@ -1049,9 +1049,7 @@ static int tw_chrdev_open(struct inode *inode, struct file *file)
 static const struct file_operations tw_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = tw_chrdev_ioctl,
-#ifdef CONFIG_COMPAT
-       .compat_ioctl   = tw_chrdev_ioctl,
-#endif
+       .compat_ioctl   = compat_ptr_ioctl,
        .open           = tw_chrdev_open,
        .release        = NULL,
        .llseek         = noop_llseek,