mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[usb] Allow USB device IDs to include arbitrary driver-specific data
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1186,6 +1186,11 @@ static int usb_probe ( struct usb_function *func,
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
/* Record driver */
|
||||
func->driver = driver;
|
||||
func->id = id;
|
||||
func->dev.driver_name = id->name;
|
||||
|
||||
/* Probe driver */
|
||||
if ( ( rc = driver->probe ( func, config ) ) != 0 ) {
|
||||
DBGC ( usb, "USB %s failed to probe driver %s: %s\n",
|
||||
@@ -1193,9 +1198,6 @@ static int usb_probe ( struct usb_function *func,
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Record driver */
|
||||
func->driver = driver;
|
||||
func->dev.driver_name = id->name;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user