diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-17 22:55:29 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-17 22:55:29 +0000 |
commit | 7309759ea33b77fc45c171a3cc78c501ed758bb8 (patch) | |
tree | 51eb125571e98a898aedc9cc9d141208f65e22e4 | |
parent | 95d7aea2f14caa63e65d2bab792626f8a90194b4 (diff) | |
download | mediapointer-dvb-s2-7309759ea33b77fc45c171a3cc78c501ed758bb8.tar.gz mediapointer-dvb-s2-7309759ea33b77fc45c171a3cc78c501ed758bb8.tar.bz2 |
V4L: ov511 - use usb_interface as parent, not usb_device
From: Kay Sievers <kay.sievers@vrfy.org>
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 <kay.sievers@vrfy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/video/ov511.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ov511.c b/linux/drivers/media/video/ov511.c index cba851d18..4c8050667 100644 --- a/linux/drivers/media/video/ov511.c +++ b/linux/drivers/media/video/ov511.c @@ -5838,7 +5838,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++) { |