mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-26 07:35:44 +08:00
[media] saa7134: 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
7a86969bd6
commit
d481c581df
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user