From: Kay Sievers Date: Fri, 18 Apr 2008 01:55:29 +0000 (-0300) Subject: V4L/DVB (7641): V4L: ov511 - use usb_interface as parent, not usb_device X-Git-Tag: v2.6.26-rc1~1084^2~83 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce96d0a44a4f8d1bb3dc12b5e98cb688c1bc730d;p=linux-2.6 V4L/DVB (7641): V4L: ov511 - use usb_interface as parent, not usb_device The current code creates a bogus DEVPATH: /devices/pci0000:00/0000:00:1d.0/usb1/1-2/video4linux/video0 while it should be: /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/video4linux/video0 Signed-off-by: Kay Sievers Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c index 48ee2d8923..eafb0c7736 100644 --- a/drivers/media/video/ov511.c +++ b/drivers/media/video/ov511.c @@ -5833,7 +5833,7 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id) goto error; memcpy(ov->vdev, &vdev_template, sizeof(*ov->vdev)); - ov->vdev->dev = &dev->dev; + ov->vdev->dev = &intf->dev; video_set_drvdata(ov->vdev, ov); for (i = 0; i < OV511_MAX_UNIT_VIDEO; i++) {