summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-03-27 20:08:20 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 23:20:23 +0200
commit2444163122c42f0f25db9b49a5e55c28eaf0b0f2 (patch)
treeab86e7cd19b1b9e703fd416169a41747a8ecd10a /drivers/media/video/gspca/gspca.c
parentV4L/DVB (11447): gspca - mr97310a: Return good error code in mod_init. (diff)
downloadlinux-2444163122c42f0f25db9b49a5e55c28eaf0b0f2.tar.xz
linux-2444163122c42f0f25db9b49a5e55c28eaf0b0f2.zip
V4L/DVB (11448): gspca - main: Use usb interface as parent.
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r--drivers/media/video/gspca/gspca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index a2741d7dccfe..93902e828e7f 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -1943,7 +1943,7 @@ int gspca_dev_probe(struct usb_interface *intf,
/* init video stuff */
memcpy(&gspca_dev->vdev, &gspca_template, sizeof gspca_template);
- gspca_dev->vdev.parent = &dev->dev;
+ gspca_dev->vdev.parent = &intf->dev;
gspca_dev->module = module;
gspca_dev->present = 1;
ret = video_register_device(&gspca_dev->vdev,