From 1d9a6ae08bccb5c77f0f6ef7d400bea2cd21bb1e Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Tue, 29 Feb 2000 09:36:25 +0000 Subject: [PATCH] If a driver probe fails, unset it from the device. This fixes a problem with certain multiport cards. Approved by: jkh --- sys/kern/subr_bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 46aac7de6df..aafbdad0039 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -790,8 +790,10 @@ device_probe_child(device_t dev, device_t child) /* * The driver returned an error so it certainly doesn't match. */ - if (result > 0) + if (result > 0) { + device_set_driver(child, 0); continue; + } /* * A priority lower than SUCCESS, remember the best matching -- 2.45.2