From 150feceeae83e7519640fb56d237193b314af9fc Mon Sep 17 00:00:00 2001 From: X512 Date: Thu, 11 Nov 2021 00:43:54 +0900 Subject: [PATCH] kernel/device_manager: fix virtio_mmio driver loading Change-Id: I9d2a99e79ff46482a45ef3eea398ba8c627cea2a Reviewed-on: https://review.haiku-os.org/c/haiku/+/4717 Tested-by: Commit checker robot Reviewed-by: X512 Reviewed-by: David Karoly Reviewed-by: waddlesplash Reviewed-by: Fredrik Holmqvist --- src/system/kernel/device_manager/device_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/device_manager/device_manager.cpp b/src/system/kernel/device_manager/device_manager.cpp index 86ba40a0be..b929971dd2 100644 --- a/src/system/kernel/device_manager/device_manager.cpp +++ b/src/system/kernel/device_manager/device_manager.cpp @@ -1717,7 +1717,6 @@ device_node::_GetNextDriverPath(void*& cookie, KPath& _path) _AddPath(*stack, "busses/pci"); _AddPath(*stack, "bus_managers"); } else if (!generic) { - _AddPath(*stack, "busses", "virtio"); _AddPath(*stack, "drivers"); } else { // For generic drivers, we only allow busses when the @@ -1732,6 +1731,7 @@ device_node::_GetNextDriverPath(void*& cookie, KPath& _path) _AddPath(*stack, "busses/i2c"); _AddPath(*stack, "busses/scsi"); _AddPath(*stack, "busses/random"); + _AddPath(*stack, "busses/virtio"); _AddPath(*stack, "bus_managers/pci"); } break;