diff options
author | Luke <luke.wilde@live.co.uk> | 2021-08-11 03:13:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 21:22:44 +0200 |
commit | 4b4525dfc776946af1702f91a02264b9878cf7f9 (patch) | |
tree | 2dca95ace15e0455550a3709271918f7ffb7231a /Kernel/Bus/USB/SysFSUSB.cpp | |
parent | 872c75ac44fa5703023d235384250b7c50d332b2 (diff) | |
download | serenity-4b4525dfc776946af1702f91a02264b9878cf7f9.zip |
Kernel/USB: Update SysFS from the generic hub instead of from UHCI
Diffstat (limited to 'Kernel/Bus/USB/SysFSUSB.cpp')
-rw-r--r-- | Kernel/Bus/USB/SysFSUSB.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/Bus/USB/SysFSUSB.cpp b/Kernel/Bus/USB/SysFSUSB.cpp index 5ecc0c5be3..ba155f63a6 100644 --- a/Kernel/Bus/USB/SysFSUSB.cpp +++ b/Kernel/Bus/USB/SysFSUSB.cpp @@ -107,6 +107,12 @@ void SysFSUSBBusDirectory::unplug(USB::Device& deleted_device) device_node->m_list_node.remove(); } +SysFSUSBBusDirectory& SysFSUSBBusDirectory::the() +{ + VERIFY(s_procfs_usb_bus_directory); + return *s_procfs_usb_bus_directory; +} + UNMAP_AFTER_INIT SysFSUSBBusDirectory::SysFSUSBBusDirectory(SysFSBusDirectory& buses_directory) : SysFSDirectory("usb"sv, buses_directory) { |