V4L/DVB (10303): pvrusb2: Use usb_make_path() to determine device bus location
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ade0815c16
commit
87e3495c31
|
@ -2412,10 +2412,7 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
|
||||||
hdw->usb_intf = intf;
|
hdw->usb_intf = intf;
|
||||||
hdw->usb_dev = interface_to_usbdev(intf);
|
hdw->usb_dev = interface_to_usbdev(intf);
|
||||||
|
|
||||||
scnprintf(hdw->bus_info,sizeof(hdw->bus_info),
|
usb_make_path(hdw->usb_dev, hdw->bus_info, sizeof(hdw->bus_info));
|
||||||
"usb %s address %d",
|
|
||||||
dev_name(&hdw->usb_dev->dev),
|
|
||||||
hdw->usb_dev->devnum);
|
|
||||||
|
|
||||||
ifnum = hdw->usb_intf->cur_altsetting->desc.bInterfaceNumber;
|
ifnum = hdw->usb_intf->cur_altsetting->desc.bInterfaceNumber;
|
||||||
usb_set_interface(hdw->usb_dev,ifnum,0);
|
usb_set_interface(hdw->usb_dev,ifnum,0);
|
||||||
|
|
Loading…
Reference in New Issue