Commit 47f16341 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fixed the interface names to have the proper bus id.

Thanks to David Brownell for pointing out where my previous patch was wrong.
parent ebff966a
......@@ -947,8 +947,8 @@ 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], "%s:%d",
dev->devpath,
sprintf (&interface->dev.bus_id[0], "%s-%s:%d",
dev->bus->bus_name, dev->devpath,
interface->altsetting->bInterfaceNumber);
if (!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