aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/videodev.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index 9024ea2557fd..ad42deebdc47 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -428,6 +428,10 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
428 v4l_print_ioctl(vfd->name, cmd); 428 v4l_print_ioctl(vfd->name, cmd);
429 } 429 }
430 430
431 if (_IOC_TYPE(cmd)=='v')
432 return v4l_compat_translate_ioctl(inode,file,cmd,arg,
433 __video_do_ioctl);
434
431 switch(cmd) { 435 switch(cmd) {
432 /* --- capabilities ------------------------------------------ */ 436 /* --- capabilities ------------------------------------------ */
433 case VIDIOC_QUERYCAP: 437 case VIDIOC_QUERYCAP:
@@ -1409,12 +1413,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
1409 ret=vfd->vidioc_log_status(file, fh); 1413 ret=vfd->vidioc_log_status(file, fh);
1410 break; 1414 break;
1411 } 1415 }
1412 1416 } /* switch */
1413 /* --- Others --------------------------------------------- */
1414
1415 default:
1416 ret=v4l_compat_translate_ioctl(inode,file,cmd,arg,__video_do_ioctl);
1417 }
1418 1417
1419 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) { 1418 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) {
1420 if (ret<0) { 1419 if (ret<0) {