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,7 +947,8 @@ static void usb_find_drivers(struct usb_device *dev) ...@@ -947,7 +947,8 @@ static void usb_find_drivers(struct usb_device *dev)
/* register this interface with driverfs */ /* register this interface with driverfs */
interface->dev.parent = &dev->dev; interface->dev.parent = &dev->dev;
interface->dev.bus = &usb_bus_type; interface->dev.bus = &usb_bus_type;
sprintf (&interface->dev.bus_id[0], "if%d", sprintf (&interface->dev.bus_id[0], "%s:%d",
dev->devpath,
interface->altsetting->bInterfaceNumber); interface->altsetting->bInterfaceNumber);
if (!desc->iInterface if (!desc->iInterface
|| usb_string (dev, desc->iInterface, || usb_string (dev, desc->iInterface,
......
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