From 99d0c19e3709e048cf1900cbb4b5dae846a4e1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 25 Oct 2007 18:25:23 +0000 Subject: [PATCH] whenever a node has already a child, it means a driver has already attached to this node for this reason, we don't add such a node in the list of nodes to be scanned this fixes the bug #1578 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22726 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/device_manager/probe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/device_manager/probe.cpp b/src/system/kernel/device_manager/probe.cpp index 5fb5376336..6f85a5d3d8 100644 --- a/src/system/kernel/device_manager/probe.cpp +++ b/src/system/kernel/device_manager/probe.cpp @@ -983,7 +983,7 @@ get_nodes_for_device_type(device_node_info *node, struct list *list, const char matches = true; } - if (matches) { + if (matches && list_get_first_item(&node->children) == NULL) { #ifdef TRACE_PROBE dprintf("** NODE MATCHES TYPE %s\n", type); dm_dump_node(node, 0);