mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
Kernel/USB: Detach devices from their driver when they are detached
This commit is contained in:
parent
b4cd354bae
commit
d168bfabc4
3 changed files with 15 additions and 0 deletions
|
@ -39,6 +39,7 @@ ErrorOr<NonnullLockRefPtr<Device>> Device::try_create(USBController const& contr
|
|||
if (result.is_error())
|
||||
continue;
|
||||
dbgln_if(USB_DEBUG, "Found driver {} for device {:04x}:{:04x}!", driver->name(), device->m_vendor_id, device->m_product_id);
|
||||
device->set_driver(driver);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue