diff options
author | dfr <dfr@FreeBSD.org> | 2000-02-29 09:36:25 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2000-02-29 09:36:25 +0000 |
commit | cc9a30eabd4fbd523ee104742c6dfbfb9cba3e9c (patch) | |
tree | d53696bc8a0f8c9444320e159d7b031ef4b2fa93 /sys/kern/subr_bus.c | |
parent | 602f6c1a707c1ad7a1f4882d21e650a3c71befe3 (diff) | |
download | FreeBSD-src-cc9a30eabd4fbd523ee104742c6dfbfb9cba3e9c.zip FreeBSD-src-cc9a30eabd4fbd523ee104742c6dfbfb9cba3e9c.tar.gz |
If a driver probe fails, unset it from the device. This fixes a problem
with certain multiport cards.
Approved by: jkh
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r-- | sys/kern/subr_bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 46aac7d..aafbdad 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 |