summaryrefslogtreecommitdiff
path: root/Kernel/Storage/IDEChannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Storage/IDEChannel.cpp')
-rw-r--r--Kernel/Storage/IDEChannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Storage/IDEChannel.cpp b/Kernel/Storage/IDEChannel.cpp
index ad9eb13ee1..7c592007b5 100644
--- a/Kernel/Storage/IDEChannel.cpp
+++ b/Kernel/Storage/IDEChannel.cpp
@@ -26,12 +26,12 @@ namespace Kernel {
UNMAP_AFTER_INIT NonnullRefPtr<IDEChannel> IDEChannel::create(const IDEController& controller, IOAddressGroup io_group, ChannelType type)
{
- return adopt(*new IDEChannel(controller, io_group, type));
+ return adopt_ref(*new IDEChannel(controller, io_group, type));
}
UNMAP_AFTER_INIT NonnullRefPtr<IDEChannel> IDEChannel::create(const IDEController& controller, u8 irq, IOAddressGroup io_group, ChannelType type)
{
- return adopt(*new IDEChannel(controller, irq, io_group, type));
+ return adopt_ref(*new IDEChannel(controller, irq, io_group, type));
}
RefPtr<StorageDevice> IDEChannel::master_device() const