Commit a7e9ed60 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[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.
parent 03687873
......@@ -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,
......
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