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) ...@@ -947,8 +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], "%s:%d", sprintf (&interface->dev.bus_id[0], "%s-%s:%d",
dev->devpath, dev->bus->bus_name, 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