kernel/ATA: Pass extra information to DeviceRegistry

This is needed since merging e7d482e from main.
This commit is contained in:
apio 2023-05-17 20:45:25 +02:00
parent 6b45530c3c
commit ff4fc1cfbc
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -727,7 +727,7 @@ Result<void> ATADevice::create(SharedPtr<ATA::Drive> 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<u64> ATADevice::read(u8* buf, usize offset, usize size) const