mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
V4L/DVB (11355): pvrusb2: use usb_interface.dev for v4l2_device_register
Signed-off-by: Janne Grunau <j@jannau.net> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
a878440d99
commit
70ad638354
1 changed files with 1 additions and 1 deletions
|
@ -2574,7 +2574,7 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
|
|||
hdw->ctl_read_urb = usb_alloc_urb(0,GFP_KERNEL);
|
||||
if (!hdw->ctl_read_urb) goto fail;
|
||||
|
||||
if (v4l2_device_register(&usb_dev->dev, &hdw->v4l2_dev) != 0) {
|
||||
if (v4l2_device_register(&intf->dev, &hdw->v4l2_dev) != 0) {
|
||||
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
|
||||
"Error registering with v4l core, giving up");
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in a new issue