diff options
Diffstat (limited to 'drivers/media/video/cpia.c')
-rw-r--r-- | drivers/media/video/cpia.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c index 16c094f77852..028a400d2453 100644 --- a/drivers/media/video/cpia.c +++ b/drivers/media/video/cpia.c | |||
@@ -3333,8 +3333,7 @@ static ssize_t cpia_read(struct file *file, char __user *buf, | |||
3333 | return cam->decompressed_frame.count; | 3333 | return cam->decompressed_frame.count; |
3334 | } | 3334 | } |
3335 | 3335 | ||
3336 | static int cpia_do_ioctl(struct inode *inode, struct file *file, | 3336 | static int cpia_do_ioctl(struct file *file, unsigned int cmd, void *arg) |
3337 | unsigned int ioctlnr, void *arg) | ||
3338 | { | 3337 | { |
3339 | struct video_device *dev = file->private_data; | 3338 | struct video_device *dev = file->private_data; |
3340 | struct cam_data *cam = video_get_drvdata(dev); | 3339 | struct cam_data *cam = video_get_drvdata(dev); |
@@ -3347,9 +3346,9 @@ static int cpia_do_ioctl(struct inode *inode, struct file *file, | |||
3347 | if (mutex_lock_interruptible(&cam->busy_lock)) | 3346 | if (mutex_lock_interruptible(&cam->busy_lock)) |
3348 | return -EINTR; | 3347 | return -EINTR; |
3349 | 3348 | ||
3350 | //DBG("cpia_ioctl: %u\n", ioctlnr); | 3349 | /* DBG("cpia_ioctl: %u\n", cmd); */ |
3351 | 3350 | ||
3352 | switch (ioctlnr) { | 3351 | switch (cmd) { |
3353 | /* query capabilities */ | 3352 | /* query capabilities */ |
3354 | case VIDIOCGCAP: | 3353 | case VIDIOCGCAP: |
3355 | { | 3354 | { |
@@ -3724,7 +3723,7 @@ static int cpia_do_ioctl(struct inode *inode, struct file *file, | |||
3724 | static int cpia_ioctl(struct inode *inode, struct file *file, | 3723 | static int cpia_ioctl(struct inode *inode, struct file *file, |
3725 | unsigned int cmd, unsigned long arg) | 3724 | unsigned int cmd, unsigned long arg) |
3726 | { | 3725 | { |
3727 | return video_usercopy(inode, file, cmd, arg, cpia_do_ioctl); | 3726 | return video_usercopy(file, cmd, arg, cpia_do_ioctl); |
3728 | } | 3727 | } |
3729 | 3728 | ||
3730 | 3729 | ||