summaryrefslogtreecommitdiff
path: root/Kernel/Bus/VirtIO/RNG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Bus/VirtIO/RNG.cpp')
-rw-r--r--Kernel/Bus/VirtIO/RNG.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/Kernel/Bus/VirtIO/RNG.cpp b/Kernel/Bus/VirtIO/RNG.cpp
index bccf375949..c98bdb5316 100644
--- a/Kernel/Bus/VirtIO/RNG.cpp
+++ b/Kernel/Bus/VirtIO/RNG.cpp
@@ -14,9 +14,9 @@ UNMAP_AFTER_INIT NonnullRefPtr<RNG> RNG::must_create(PCI::Address address)
return adopt_ref_if_nonnull(new RNG(address)).release_nonnull();
}
-UNMAP_AFTER_INIT RNG::RNG(PCI::Address address)
- : VirtIO::Device(address)
+UNMAP_AFTER_INIT void RNG::initialize()
{
+ Device::initialize();
bool success = negotiate_features([&](auto) {
return 0;
});
@@ -33,9 +33,14 @@ UNMAP_AFTER_INIT RNG::RNG(PCI::Address address)
}
}
+UNMAP_AFTER_INIT RNG::RNG(PCI::Address address)
+ : VirtIO::Device(address)
+{
+}
+
bool RNG::handle_device_config_change()
{
- VERIFY_NOT_REACHED(); // Device has no config
+ return false; // Device has no config
}
void RNG::handle_queue_update(u16 queue_index)