summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kernel/Devices/UHCIController.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/Devices/UHCIController.cpp b/Kernel/Devices/UHCIController.cpp
index f58cfa0bc5..a76be53296 100644
--- a/Kernel/Devices/UHCIController.cpp
+++ b/Kernel/Devices/UHCIController.cpp
@@ -26,6 +26,8 @@
#include <Kernel/Devices/UHCIController.h>
+#define UHCI_ENABLED 0
+
namespace Kernel {
static constexpr u16 UHCI_USBCMD_RUN = 0x0001;
@@ -46,6 +48,9 @@ static constexpr u16 UHCI_USBSTS_USB_INTERRUPT = 0x0001;
void UHCIController::detect()
{
+#if !UHCI_ENABLED
+ return;
+#endif
PCI::enumerate([&](const PCI::Address& address, PCI::ID id) {
if (address.is_null())
return;