If a driver probe fails, unset it from the device. This fixes a problem

with certain multiport cards.

Approved by: jkh
This commit is contained in:
Doug Rabson 2000-02-29 09:36:25 +00:00
parent 88007fd897
commit 1d9a6ae08b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57614

View File

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