Commit 87e3495c authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

V4L/DVB (10303): pvrusb2: Use usb_make_path() to determine device bus location

Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ade0815c
...@@ -2412,10 +2412,7 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf, ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment