[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 f4f9ef0d98e2aab0c14fc46ad43f3202d244f28b..e3fc2c71808abbd0746cc7d9faabdfc14b9c583f 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;
 }