From e73af4baa88c4227f9cb5e3b322724e5a2394a88 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 17 May 2023 20:45:25 +0200 Subject: [PATCH] kernel/ATA: Pass extra information to DeviceRegistry This is needed since merging e7d482e from main. --- kernel/src/arch/x86_64/disk/ATA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/arch/x86_64/disk/ATA.cpp b/kernel/src/arch/x86_64/disk/ATA.cpp index e28ec535..7e2050c0 100644 --- a/kernel/src/arch/x86_64/disk/ATA.cpp +++ b/kernel/src/arch/x86_64/disk/ATA.cpp @@ -727,7 +727,7 @@ Result ATADevice::create(SharedPtr drive) { auto device = TRY(adopt_shared_if_nonnull(new (std::nothrow) ATADevice())); device->m_drive = drive; - return DeviceRegistry::register_special_device(DeviceRegistry::Disk, next_minor++, device); + return DeviceRegistry::register_special_device(DeviceRegistry::Disk, next_minor++, device, "cdrom", 0400); } Result ATADevice::read(u8* buf, usize offset, usize size) const