[media] cx23885-417: use v4l2_dev instead of the deprecated parent field
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
14381c2677
commit
874d91db78
1 changed files with 1 additions and 1 deletions
|
@ -1732,7 +1732,7 @@ static struct video_device *cx23885_video_dev_alloc(
|
||||||
*vfd = *template;
|
*vfd = *template;
|
||||||
snprintf(vfd->name, sizeof(vfd->name), "%s (%s)",
|
snprintf(vfd->name, sizeof(vfd->name), "%s (%s)",
|
||||||
cx23885_boards[tsport->dev->board].name, type);
|
cx23885_boards[tsport->dev->board].name, type);
|
||||||
vfd->parent = &pci->dev;
|
vfd->v4l2_dev = &dev->v4l2_dev;
|
||||||
vfd->release = video_device_release;
|
vfd->release = video_device_release;
|
||||||
return vfd;
|
return vfd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue