diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-06-12 12:49:50 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-21 18:03:39 +0400 |
commit | d66de790c77b98589b93cb327bde2cddd2a4c2cc (patch) | |
tree | f026820dbfe9fc80208e6e2a4027aabc5a01f1d5 /drivers/media/pci/saa7164/saa7164-encoder.c | |
parent | f1741fa8dd4a561e883cf60f103c40eda8790d80 (diff) | |
download | linux-d66de790c77b98589b93cb327bde2cddd2a4c2cc.tar.xz |
[media] saa7164: add v4l2_device and replace parent with v4l2_dev
This driver did not yet support struct v4l2_device, so add it. This
make it possible to replace the deprecated parent field with the
v4l2_dev field, allowing the eventual removal of the parent field.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/saa7164/saa7164-encoder.c')
-rw-r--r-- | drivers/media/pci/saa7164/saa7164-encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-encoder.c b/drivers/media/pci/saa7164/saa7164-encoder.c index 7b7ed97b8503..9266965412c3 100644 --- a/drivers/media/pci/saa7164/saa7164-encoder.c +++ b/drivers/media/pci/saa7164/saa7164-encoder.c @@ -1348,7 +1348,7 @@ static struct video_device *saa7164_encoder_alloc( snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, type, saa7164_boards[dev->board].name); - vfd->parent = &pci->dev; + vfd->v4l2_dev = &dev->v4l2_dev; vfd->release = video_device_release; return vfd; } |