diff options
author | Mike Isely <isely@pobox.com> | 2009-01-22 22:20:24 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2009-01-22 22:20:24 -0600 |
commit | 817280578765c7334fce02fe793591e2e146394d (patch) | |
tree | 811e5a8cb9e19416d365e0e89c14662937cd2790 /linux | |
parent | 6ee9656c7a173466bd8ce27fc3479093549891e0 (diff) | |
download | mediapointer-dvb-s2-817280578765c7334fce02fe793591e2e146394d.tar.gz mediapointer-dvb-s2-817280578765c7334fce02fe793591e2e146394d.tar.bz2 |
pvrusb2: Use usb_make_path() to determine device bus location
From: Mike Isely <isely@pobox.com>
Priority: normal
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index ad34cc74a..19e12c5aa 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -2436,10 +2436,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); |