Skip to content

Commit

Permalink
V4L/DVB (10303): pvrusb2: Use usb_make_path() to determine device bus…
Browse files Browse the repository at this point in the history
… location

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent ade0815 commit 87e3495
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/media/video/pvrusb2/pvrusb2-hdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2412,10 +2412,7 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
hdw->usb_intf = intf;
hdw->usb_dev = interface_to_usbdev(intf);

scnprintf(hdw->bus_info,sizeof(hdw->bus_info),
"usb %s address %d",
dev_name(&hdw->usb_dev->dev),
hdw->usb_dev->devnum);
usb_make_path(hdw->usb_dev, hdw->bus_info, sizeof(hdw->bus_info));

ifnum = hdw->usb_intf->cur_altsetting->desc.bInterfaceNumber;
usb_set_interface(hdw->usb_dev,ifnum,0);
Expand Down

0 comments on commit 87e3495

Please sign in to comment.