diff options
Diffstat (limited to 'drivers/firewire/core-cdev.c')
| -rw-r--r-- | drivers/firewire/core-cdev.c | 15 | 
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 1da7ba18d399..6e291d8f3a27 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c @@ -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,  };  |