mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
Kernel/USB: Detach devices from their driver when they are detached
This commit is contained in:
committed by
Andrew Kaster
parent
b4cd354bae
commit
d168bfabc4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user