]> Pileus Git - ~andy/linux/commitdiff
[media] zoran: use v4l2_dev instead of the deprecated parent field
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Jun 2013 10:30:08 +0000 (07:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:02:55 +0000 (11:02 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/zoran/zoran_card.c

index bb53d2488ad08be66206b9aa478fff2f91068a0f..923d59a321f8a9e150685447ecc12fc54044ca24 100644 (file)
@@ -1050,7 +1050,7 @@ static int zr36057_init (struct zoran *zr)
         *   Now add the template and register the device unit.
         */
        memcpy(zr->video_dev, &zoran_template, sizeof(zoran_template));
-       zr->video_dev->parent = &zr->pci_dev->dev;
+       zr->video_dev->v4l2_dev = &zr->v4l2_dev;
        strcpy(zr->video_dev->name, ZR_DEVNAME(zr));
        /* It's not a mem2mem device, but you can both capture and output from
           one and the same device. This should really be split up into two