summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-03-25 11:35:56 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-03-25 11:35:56 -0300
commitfc4bade9137bc39ff2f8ce7e795ee34cae028014 (patch)
tree89ad2cf0f50aabe3a64ef3afd66dd131e4183d32 /linux
parent15daef71fb04bcd5f34f4576390141982b4907e8 (diff)
downloadmediapointer-dvb-s2-fc4bade9137bc39ff2f8ce7e795ee34cae028014.tar.gz
mediapointer-dvb-s2-fc4bade9137bc39ff2f8ce7e795ee34cae028014.tar.bz2
1/7 Set the PCI device in the V4L2 device
From: Jonathan Corbet <corbet@lwn.net> Set the PCI dev in the V4L2 dev so that the proper sysfs link gets made Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/cafe_ccic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cafe_ccic.c b/linux/drivers/media/video/cafe_ccic.c
index b96d45654..890770d37 100644
--- a/linux/drivers/media/video/cafe_ccic.c
+++ b/linux/drivers/media/video/cafe_ccic.c
@@ -2118,6 +2118,7 @@ static int cafe_pci_probe(struct pci_dev *pdev,
cam->v4ldev = cafe_v4l_template;
cam->v4ldev.debug = 0;
// cam->v4ldev.debug = V4L2_DEBUG_IOCTL_ARG;
+ cam->v4ldev.dev = &pdev->dev;
ret = video_register_device(&cam->v4ldev, VFL_TYPE_GRABBER, -1);
if (ret)
goto out_smbus;