]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (11053): saa7134: set v4l2_dev field of video_device
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 15 Mar 2009 09:53:32 +0000 (06:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:23 +0000 (12:43 -0300)
The v4l2_dev field of video_device wasn't initialized. The parent field
is derived from v4l2_dev, so that doesn't need to be set anymore.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7134/saa7134-core.c

index ac574452d01e7a6d32f3babc052fe1a60f46e955..321f0d7244853a1ed8c869a10ffabacd2e67dd7d 100644 (file)
@@ -776,7 +776,7 @@ static struct video_device *vdev_init(struct saa7134_dev *dev,
                return NULL;
        *vfd = *template;
        vfd->minor   = -1;
-       vfd->parent  = &dev->pci->dev;
+       vfd->v4l2_dev  = &dev->v4l2_dev;
        vfd->release = video_device_release;
        vfd->debug   = video_debug;
        snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)",