diff options
Diffstat (limited to 'Kernel/Time/RTC.cpp')
-rw-r--r-- | Kernel/Time/RTC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/RTC.cpp b/Kernel/Time/RTC.cpp index 3d6958884c..31c1f09e02 100644 --- a/Kernel/Time/RTC.cpp +++ b/Kernel/Time/RTC.cpp @@ -16,7 +16,7 @@ namespace Kernel { NonnullRefPtr<RealTimeClock> RealTimeClock::create(Function<void(const RegisterState&)> callback) { - return adopt(*new RealTimeClock(move(callback))); + return adopt_ref(*new RealTimeClock(move(callback))); } RealTimeClock::RealTimeClock(Function<void(const RegisterState&)> callback) : HardwareTimer(IRQ_TIMER, move(callback)) |