summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-03-27 20:08:20 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-03-27 20:08:20 +0100
commit4ef69f4186e06be9b9103dbc069bf0c530f4a338 (patch)
treed408e24607c557b2cac2f9910e264f851419f201 /linux/drivers/media/video/gspca/gspca.c
parentfc0db02c3b9278afb23eb9a2045e4ed008249f23 (diff)
downloadmediapointer-dvb-s2-4ef69f4186e06be9b9103dbc069bf0c530f4a338.tar.gz
mediapointer-dvb-s2-4ef69f4186e06be9b9103dbc069bf0c530f4a338.tar.bz2
gspca - main: Use usb interface as parent.
From: Hans de Goede <hdegoede@redhat.com> Priority: normal Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/gspca.c')
-rw-r--r--linux/drivers/media/video/gspca/gspca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c
index cfd27161b..b12974d5e 100644
--- a/linux/drivers/media/video/gspca/gspca.c
+++ b/linux/drivers/media/video/gspca/gspca.c
@@ -1955,7 +1955,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,