Commit 7066656c authored by Patrick Mochel's avatar Patrick Mochel

USB:

- Set interface's bus type as they're registered with core
- Set bus_id to have device number as well as interface number
parent cdc265a4
...@@ -904,7 +904,8 @@ static void usb_find_drivers(struct usb_device *dev) ...@@ -904,7 +904,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;
sprintf (&interface->dev.bus_id[0], "%03d", ifnum); interface->dev.bus = &usb_bus_type;
sprintf (&interface->dev.bus_id[0], "%03d%03d", dev->devnum,ifnum);
sprintf (&interface->dev.name[0], "figure out some name..."); sprintf (&interface->dev.name[0], "figure out some name...");
device_register (&interface->dev); device_register (&interface->dev);
......
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