mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
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:
parent
88007fd897
commit
1d9a6ae08b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57614
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user