summaryrefslogtreecommitdiff
path: root/Kernel/Devices/PCISerialDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Devices/PCISerialDevice.cpp')
-rw-r--r--Kernel/Devices/PCISerialDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/PCISerialDevice.cpp b/Kernel/Devices/PCISerialDevice.cpp
index 7658088769..d7150efac7 100644
--- a/Kernel/Devices/PCISerialDevice.cpp
+++ b/Kernel/Devices/PCISerialDevice.cpp
@@ -15,7 +15,7 @@ static SerialDevice* s_the = nullptr;
UNMAP_AFTER_INIT void PCISerialDevice::detect()
{
size_t current_device_minor = 68;
- PCI::enumerate([&](PCI::DeviceIdentifier const& device_identifier) {
+ MUST(PCI::enumerate([&](PCI::DeviceIdentifier const& device_identifier) {
for (auto& board_definition : board_definitions) {
if (board_definition.device_id != device_identifier.hardware_id())
continue;
@@ -36,7 +36,7 @@ UNMAP_AFTER_INIT void PCISerialDevice::detect()
dmesgln("PCISerialDevice: Found {} @ {}", board_definition.name, device_identifier.address());
return;
}
- });
+ }));
}
SerialDevice& PCISerialDevice::the()