diff options
Diffstat (limited to 'Kernel/Bus/VirtIO/Console.cpp')
-rw-r--r-- | Kernel/Bus/VirtIO/Console.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Bus/VirtIO/Console.cpp b/Kernel/Bus/VirtIO/Console.cpp index a636a3d37c..cced62ff0f 100644 --- a/Kernel/Bus/VirtIO/Console.cpp +++ b/Kernel/Bus/VirtIO/Console.cpp @@ -13,9 +13,9 @@ namespace Kernel::VirtIO { unsigned Console::next_device_id = 0; -UNMAP_AFTER_INIT NonnullRefPtr<Console> Console::must_create(PCI::Address address) +UNMAP_AFTER_INIT NonnullRefPtr<Console> Console::must_create(PCI::DeviceIdentifier const& pci_device_identifier) { - return adopt_ref_if_nonnull(new Console(address)).release_nonnull(); + return adopt_ref_if_nonnull(new Console(pci_device_identifier)).release_nonnull(); } UNMAP_AFTER_INIT void Console::initialize() @@ -61,8 +61,8 @@ UNMAP_AFTER_INIT void Console::initialize() } } -UNMAP_AFTER_INIT Console::Console(PCI::Address address) - : VirtIO::Device(address) +UNMAP_AFTER_INIT Console::Console(PCI::DeviceIdentifier const& pci_device_identifier) + : VirtIO::Device(pci_device_identifier) , m_device_id(next_device_id++) { } |