]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: changed the interface name to be a bit more unique.
authorGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Jul 2002 02:48:37 +0000 (19:48 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Jul 2002 02:48:37 +0000 (19:48 -0700)
This is needed as long as we have the directory of symlinks in the bus
subdir in driverfs to point to the unique interfaces.

drivers/usb/core/usb.c

index 89431d2a1d7c1d8ede4063523d308e3269ab5852..84f0e651facf9066bd460c65e6c85e476b625330 100644 (file)
@@ -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,