diff options
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/cx88/cx88-core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/pci/cx88/cx88-core.c b/drivers/media/pci/cx88/cx88-core.c index c8f3dcc579d4..ad59dc9235ae 100644 --- a/drivers/media/pci/cx88/cx88-core.c +++ b/drivers/media/pci/cx88/cx88-core.c | |||
@@ -1034,7 +1034,14 @@ struct video_device *cx88_vdev_init(struct cx88_core *core, | |||
1034 | if (NULL == vfd) | 1034 | if (NULL == vfd) |
1035 | return NULL; | 1035 | return NULL; |
1036 | *vfd = *template_; | 1036 | *vfd = *template_; |
1037 | /* | ||
1038 | * The dev pointer of v4l2_device is NULL, instead we set the | ||
1039 | * video_device dev_parent pointer to the correct PCI bus device. | ||
1040 | * This driver is a rare example where there is one v4l2_device, | ||
1041 | * but the video nodes have different parent (PCI) devices. | ||
1042 | */ | ||
1037 | vfd->v4l2_dev = &core->v4l2_dev; | 1043 | vfd->v4l2_dev = &core->v4l2_dev; |
1044 | vfd->dev_parent = &pci->dev; | ||
1038 | vfd->release = video_device_release; | 1045 | vfd->release = video_device_release; |
1039 | snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", | 1046 | snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", |
1040 | core->name, type, core->board.name); | 1047 | core->name, type, core->board.name); |