]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/firewire/core-cdev.c
Merge tag 'xfs-5.5-merge-16' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux.git] / drivers / firewire / core-cdev.c
index 1da7ba18d3993207a2797ff53fc387685c756edc..6e291d8f3a278556c8d0349b7aed9c8d9e67db9c 100644 (file)
@@ -1646,14 +1646,6 @@ static long fw_device_op_ioctl(struct file *file,
        return dispatch_ioctl(file->private_data, cmd, (void __user *)arg);
 }
 
-#ifdef CONFIG_COMPAT
-static long fw_device_op_compat_ioctl(struct file *file,
-                                     unsigned int cmd, unsigned long arg)
-{
-       return dispatch_ioctl(file->private_data, cmd, compat_ptr(arg));
-}
-#endif
-
 static int fw_device_op_mmap(struct file *file, struct vm_area_struct *vma)
 {
        struct client *client = file->private_data;
@@ -1694,7 +1686,8 @@ static int fw_device_op_mmap(struct file *file, struct vm_area_struct *vma)
        if (ret < 0)
                goto fail;
 
-       ret = fw_iso_buffer_map_vma(&client->buffer, vma);
+       ret = vm_map_pages_zero(vma, client->buffer.pages,
+                               client->buffer.page_count);
        if (ret < 0)
                goto fail;
 
@@ -1795,7 +1788,5 @@ const struct file_operations fw_device_ops = {
        .mmap           = fw_device_op_mmap,
        .release        = fw_device_op_release,
        .poll           = fw_device_op_poll,
-#ifdef CONFIG_COMPAT
-       .compat_ioctl   = fw_device_op_compat_ioctl,
-#endif
+       .compat_ioctl   = compat_ptr_ioctl,
 };