V4L/DVB (9975): ivtv: set v4l2_dev instead of parent.
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 23 Dec 2008 10:35:45 +0000 (07:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:36 +0000 (09:39 -0200)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtv-streams.c

index 76279ed..f77d764 100644 (file)
@@ -209,7 +209,7 @@ static int ivtv_prep_dev(struct ivtv *itv, int type)
                        itv->device.name, s->name);
 
        s->v4l2dev->num = num;
-       s->v4l2dev->parent = &itv->dev->dev;
+       s->v4l2dev->v4l2_dev = &itv->device;
        s->v4l2dev->fops = ivtv_stream_info[type].fops;
        s->v4l2dev->release = video_device_release;
        s->v4l2dev->tvnorms = V4L2_STD_ALL;