aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/kapi')
-rw-r--r--arch/x86_64/kapi/devices.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/kapi/devices.cpp b/arch/x86_64/kapi/devices.cpp
index 888b6e20..1e2fedd6 100644
--- a/arch/x86_64/kapi/devices.cpp
+++ b/arch/x86_64/kapi/devices.cpp
@@ -11,6 +11,7 @@
#include <ranges>
#include <span>
+#include <utility>
namespace kapi::devices
{
@@ -39,7 +40,7 @@ namespace kapi::devices
{
auto instance = driver->make_instance();
kstd::println("[x86_64:DRV] registering driver '{}' ({})", instance->name(), driver->name());
- kapi::devices::driver_registry::get().add(driver->make_instance());
+ kapi::devices::driver_registry::get().add(std::move(instance));
}
}