diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-streams.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-streams.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c index f8883b487f4a..54d2023b26c4 100644 --- a/drivers/media/video/ivtv/ivtv-streams.c +++ b/drivers/media/video/ivtv/ivtv-streams.c | |||
@@ -208,16 +208,11 @@ static int ivtv_prep_dev(struct ivtv *itv, int type) | |||
208 | return -ENOMEM; | 208 | return -ENOMEM; |
209 | } | 209 | } |
210 | 210 | ||
211 | s->v4l2dev->type = VID_TYPE_CAPTURE | VID_TYPE_TUNER | VID_TYPE_TELETEXT | | ||
212 | VID_TYPE_CLIPPING | VID_TYPE_SCALES | VID_TYPE_MPEG_ENCODER; | ||
213 | if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) { | ||
214 | s->v4l2dev->type |= VID_TYPE_MPEG_DECODER; | ||
215 | } | ||
216 | snprintf(s->v4l2dev->name, sizeof(s->v4l2dev->name), "ivtv%d %s", | 211 | snprintf(s->v4l2dev->name, sizeof(s->v4l2dev->name), "ivtv%d %s", |
217 | itv->num, s->name); | 212 | itv->num, s->name); |
218 | 213 | ||
219 | s->v4l2dev->minor = minor; | 214 | s->v4l2dev->minor = minor; |
220 | s->v4l2dev->dev = &itv->dev->dev; | 215 | s->v4l2dev->parent = &itv->dev->dev; |
221 | s->v4l2dev->fops = ivtv_stream_info[type].fops; | 216 | s->v4l2dev->fops = ivtv_stream_info[type].fops; |
222 | s->v4l2dev->release = video_device_release; | 217 | s->v4l2dev->release = video_device_release; |
223 | s->v4l2dev->tvnorms = V4L2_STD_ALL; | 218 | s->v4l2dev->tvnorms = V4L2_STD_ALL; |