summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2002-07-23 19:48:37 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2002-07-23 19:48:37 -0700
commita7e9ed60dc6540941c89961bf5350bf931d097f4 (patch)
tree0ad1c07db1431a5d8a12512a9d06f011d63c274f
parent036878730ce3090faf0fb15bba9be896cc20b9ed (diff)
[PATCH] USB: changed the interface name to be a bit more unique.
This is needed as long as we have the directory of symlinks in the bus subdir in driverfs to point to the unique interfaces.
-rw-r--r--drivers/usb/core/usb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 89431d2a1d7c..84f0e651facf 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -947,8 +947,9 @@ static void usb_find_drivers(struct usb_device *dev)
/* register this interface with driverfs */
interface->dev.parent = &dev->dev;
interface->dev.bus = &usb_bus_type;
- sprintf (&interface->dev.bus_id[0], "if%d",
- interface->altsetting->bInterfaceNumber);
+ sprintf (&interface->dev.bus_id[0], "%s:%d",
+ dev->devpath,
+ interface->altsetting->bInterfaceNumber);
if (!desc->iInterface
|| usb_string (dev, desc->iInterface,
interface->dev.name,