diff options
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) { |