diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-01 20:28:23 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-01 20:28:23 +0200 |
commit | 6bf76aa3cd9b7abb05cf8f580991400149c40ac2 (patch) | |
tree | 95ecf602db61ec5d5743b2d5d84563749e79844d /linux/drivers/media/video/zc0301 | |
parent | e36ea2be82e0ac670bf5493b8625bcacd7aa74c8 (diff) | |
download | mediapointer-dvb-s2-6bf76aa3cd9b7abb05cf8f580991400149c40ac2.tar.gz mediapointer-dvb-s2-6bf76aa3cd9b7abb05cf8f580991400149c40ac2.tar.bz2 |
PATCH: Fix parents on some webcam drivers
From: Hans de Goede <j.w.r.degoede@hhs.nl>
While doing some testing using Luca Risolia's sonix driver I noticed that
the video device did not get ACL's set to allow access by locally logged in
users, nor does it show up as a video device in lshal, causing cheese to not
see it.
This turns out to be caused by all of Luca Risolia's drivers not setting
the parent member of the video_device struct. This patch fixes this.
Priority: high
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
CC: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/zc0301')
-rw-r--r-- | linux/drivers/media/video/zc0301/zc0301_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/zc0301/zc0301_core.c b/linux/drivers/media/video/zc0301/zc0301_core.c index 1ca2a0c80..0be0f095e 100644 --- a/linux/drivers/media/video/zc0301/zc0301_core.c +++ b/linux/drivers/media/video/zc0301/zc0301_core.c @@ -1992,6 +1992,7 @@ zc0301_usb_probe(struct usb_interface* intf, const struct usb_device_id* id) cam->v4ldev->fops = &zc0301_fops; cam->v4ldev->minor = video_nr[dev_nr]; cam->v4ldev->release = video_device_release; + cam->v4ldev->parent = &udev->dev; video_set_drvdata(cam->v4ldev, cam); init_completion(&cam->probe); |