Commit ce96d0a4 authored by Kay Sievers's avatar Kay Sievers Committed by Mauro Carvalho Chehab

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: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 353a2761
...@@ -5833,7 +5833,7 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id) ...@@ -5833,7 +5833,7 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id)
goto error; goto error;
memcpy(ov->vdev, &vdev_template, sizeof(*ov->vdev)); memcpy(ov->vdev, &vdev_template, sizeof(*ov->vdev));
ov->vdev->dev = &dev->dev; ov->vdev->dev = &intf->dev;
video_set_drvdata(ov->vdev, ov); video_set_drvdata(ov->vdev, ov);
for (i = 0; i < OV511_MAX_UNIT_VIDEO; i++) { for (i = 0; i < OV511_MAX_UNIT_VIDEO; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment