[media] saa7134: use v4l2_dev instead of the deprecated parent field
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 20 Jun 2013 13:57:10 +0000 (10:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:05:29 +0000 (11:05 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/saa7134/saa7134-empress.c

index e66bc3d969cfb36e7ec17b145439517ecaae5bbb..3022eb2a792503bc065863d6209c38a9d30d5014 100644 (file)
@@ -511,7 +511,7 @@ static int empress_init(struct saa7134_dev *dev)
        if (NULL == dev->empress_dev)
                return -ENOMEM;
        *(dev->empress_dev) = saa7134_empress_template;
-       dev->empress_dev->parent  = &dev->pci->dev;
+       dev->empress_dev->v4l2_dev  = &dev->v4l2_dev;
        dev->empress_dev->release = video_device_release;
        snprintf(dev->empress_dev->name, sizeof(dev->empress_dev->name),
                 "%s empress (%s)", dev->name,