diff --git a/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_arch_module.cpp b/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_arch_module.cpp index a26b35daed..1ebb7005dc 100644 --- a/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_arch_module.cpp +++ b/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_arch_module.cpp @@ -3,6 +3,7 @@ * Distributed under the terms of the MIT License. */ +#include #include #include "pci_msi.h" @@ -12,7 +13,17 @@ pci_arch_module_std_ops(int32 op, ...) { switch (op) { case B_MODULE_INIT: + { + module_info *dummy; + status_t result = get_module(B_PCI_MODULE_NAME, &dummy); + if (result != B_OK) + return result; + + return B_OK; + } + case B_MODULE_UNINIT: + put_module(B_PCI_MODULE_NAME); return B_OK; }