diff options
Diffstat (limited to 'drivers/media/video/w9968cf.c')
-rw-r--r-- | drivers/media/video/w9968cf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c index 3b08bc4af909..f59b2bd07e89 100644 --- a/drivers/media/video/w9968cf.c +++ b/drivers/media/video/w9968cf.c | |||
@@ -3440,7 +3440,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id) | |||
3440 | if (!cam) | 3440 | if (!cam) |
3441 | return -ENOMEM; | 3441 | return -ENOMEM; |
3442 | 3442 | ||
3443 | err = v4l2_device_register(&udev->dev, &cam->v4l2_dev); | 3443 | err = v4l2_device_register(&intf->dev, &cam->v4l2_dev); |
3444 | if (err) | 3444 | if (err) |
3445 | goto fail0; | 3445 | goto fail0; |
3446 | 3446 | ||
@@ -3523,7 +3523,8 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id) | |||
3523 | w9968cf_turn_on_led(cam); | 3523 | w9968cf_turn_on_led(cam); |
3524 | 3524 | ||
3525 | w9968cf_i2c_init(cam); | 3525 | w9968cf_i2c_init(cam); |
3526 | cam->sensor_sd = v4l2_i2c_new_probed_subdev(&cam->i2c_adapter, | 3526 | cam->sensor_sd = v4l2_i2c_new_probed_subdev(&cam->v4l2_dev, |
3527 | &cam->i2c_adapter, | ||
3527 | "ovcamchip", "ovcamchip", addrs); | 3528 | "ovcamchip", "ovcamchip", addrs); |
3528 | 3529 | ||
3529 | usb_set_intfdata(intf, cam); | 3530 | usb_set_intfdata(intf, cam); |