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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: David Karoly <karolyd577@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
X512 2021-11-11 00:43:54 +09:00 committed by Fredrik Holmqvist
parent e83979afa4
commit 150feceeae

View File

@ -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;