The patch number 11993 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Lennart Poettering  <mzxre...@0pointer.de>
V4L/pwc - use usb_interface as parent, not usb_device


The current code creates a sysfs device path where the video4linux
device is child of the usb device itself instead of the interface it
belongs to. That is evil and confuses udev.

This patch does basically the same thing as Kay's similar patch for the
ov511 driver:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ce96d0a44a4f8d1bb3dc12b5e98cb688c1bc730d

Signed-off-by: Lennart Poettering <mzxre...@0pointer.de>
Acked-by: Hans de Goede <hdego...@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/video/pwc/pwc-if.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r 1bf9caa4bf2c -r 53333f3f8cc1 linux/drivers/media/video/pwc/pwc-if.c
--- a/linux/drivers/media/video/pwc/pwc-if.c    Thu Jun 04 14:07:16 2009 +0000
+++ b/linux/drivers/media/video/pwc/pwc-if.c    Thu Jun 04 19:18:13 2009 +0000
@@ -1791,7 +1791,7 @@ static int usb_pwc_probe(struct usb_inte
                return -ENOMEM;
        }
        memcpy(pdev->vdev, &pwc_template, sizeof(pwc_template));
-       pdev->vdev->parent = &(udev->dev);
+       pdev->vdev->parent = &intf->dev;
        strcpy(pdev->vdev->name, name);
        video_set_drvdata(pdev->vdev, pdev);
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/53333f3f8cc1dc9bc688d790a8c2cb70116cc752

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to