V4L/DVB (4494a): Fix compilation when V4L1 support is not present
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Sep 2006 12:31:37 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Sep 2006 16:45:46 +0000 (13:45 -0300)
VIDIOCGMBUF should be compiled only when V4L1 support is selected, since
this ioctl is from the obsoleted API.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/saa7146_video.c

index 8393d472d3b81acced0acf7848cac92021ae85ef..7e0cedc557df2a17e8ed8b38114c27c75e321332 100644 (file)
@@ -1190,6 +1190,7 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int
                }
                return err;
        }
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
        case VIDIOCGMBUF:
        {
                struct video_mbuf *mbuf = arg;
@@ -1218,6 +1219,7 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int
                mutex_unlock(&q->lock);
                return 0;
        }
+#endif
        default:
                return v4l_compat_translate_ioctl(inode,file,cmd,arg,
                                                  saa7146_video_do_ioctl);