[media] cx23885-417: use v4l2_dev instead of the deprecated parent field
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Jun 2013 10:27:37 +0000 (07:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:02:44 +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/cx23885/cx23885-417.c

index f4f9ef0..e3fc2c7 100644 (file)
@@ -1732,7 +1732,7 @@ static struct video_device *cx23885_video_dev_alloc(
        *vfd = *template;
        snprintf(vfd->name, sizeof(vfd->name), "%s (%s)",
                cx23885_boards[tsport->dev->board].name, type);
-       vfd->parent  = &pci->dev;
+       vfd->v4l2_dev = &dev->v4l2_dev;
        vfd->release = video_device_release;
        return vfd;
 }