V4L/DVB (11358): w9968cf: use usb_interface.dev for v4l2_device_register
authorJanne Grunau <j@jannau.net>
Wed, 1 Apr 2009 11:49:16 +0000 (08:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:44:15 +0000 (21:44 -0300)
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/w9968cf.c

index 3b08bc4..df181e8 100644 (file)
@@ -3440,7 +3440,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id)
        if (!cam)
                return -ENOMEM;
 
-       err = v4l2_device_register(&udev->dev, &cam->v4l2_dev);
+       err = v4l2_device_register(&intf->dev, &cam->v4l2_dev);
        if (err)
                goto fail0;