Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70ad6383 authored by Janne Grunau's avatar Janne Grunau Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (11355): pvrusb2: use usb_interface.dev for v4l2_device_register

parent a878440d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2574,7 +2574,7 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
	hdw->ctl_read_urb = usb_alloc_urb(0,GFP_KERNEL);
	hdw->ctl_read_urb = usb_alloc_urb(0,GFP_KERNEL);
	if (!hdw->ctl_read_urb) goto fail;
	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,
		pvr2_trace(PVR2_TRACE_ERROR_LEGS,
			   "Error registering with v4l core, giving up");
			   "Error registering with v4l core, giving up");
		goto fail;
		goto fail;