summaryrefslogtreecommitdiff
path: root/Kernel/Time/PIT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Time/PIT.cpp')
-rw-r--r--Kernel/Time/PIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/PIT.cpp b/Kernel/Time/PIT.cpp
index 69f9636414..8e2f916998 100644
--- a/Kernel/Time/PIT.cpp
+++ b/Kernel/Time/PIT.cpp
@@ -17,7 +17,7 @@ namespace Kernel {
UNMAP_AFTER_INIT NonnullRefPtr<PIT> PIT::initialize(Function<void(const RegisterState&)> callback)
{
- return adopt(*new PIT(move(callback)));
+ return adopt_ref(*new PIT(move(callback)));
}
inline static void reset_countdown(u16 timer_reload)