Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
        if (rc < 0)
                return rc;
 
-       if ((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) &&
-           (fh->type != V4L2_BUF_TYPE_VBI_CAPTURE))
-               return -EINVAL;
        if (type != fh->type)
                return -EINVAL;
 
                return -ERESTARTSYS;
        }
        fh->dev = dev;
-       fh->radio = radio;
        fh->type = fh_type;
        filp->private_data = fh;
        v4l2_fh_init(&fh->fh, vdev);
                dev->video_input = dev->video_input > 2 ? 2 : dev->video_input;
 
        }
-       if (fh->radio) {
+       if (radio) {
                cx231xx_videodbg("video_open: setting radio device\n");
 
                /* cx231xx_start_radio(dev); */
 
        struct v4l2_fh fh;
        struct cx231xx *dev;
        unsigned int stream_on:1;       /* Locks streams */
-       int radio;
-
-       struct videobuf_queue vb_vidq;
-
        enum v4l2_buf_type type;
 
-
-
-/*following is copyed from cx23885.h*/
-       u32                        resources;
-
-       /* video overlay */
-       struct v4l2_window         win;
-       struct v4l2_clip           *clips;
-       unsigned int               nclips;
-
-       /* video capture */
-       struct cx23417_fmt         *fmt;
-       unsigned int               width, height;
+       struct videobuf_queue vb_vidq;
 
        /* vbi capture */
        struct videobuf_queue      vidq;