Remove parts of rev 1.211 again: do not delete our children iff they
haven't been probed successfully. It's a known bug that ISA hints processing instantiates those devices, and prematurely killing them has other unwanted side-effects.
This commit is contained in:
parent
3fef646ef0
commit
e3b525a006
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79488
@ -888,13 +888,6 @@ fdc_attach(device_t dev)
|
||||
if ((error = bus_generic_attach(dev)) != 0)
|
||||
return (error);
|
||||
|
||||
/* Now remove all children not successfully probed (if any). */
|
||||
if ((error = device_get_children(dev, &children, &nchildren)) != 0)
|
||||
return (error);
|
||||
for (i = 0; i < nchildren; i++)
|
||||
if (!device_is_alive(children[i]))
|
||||
device_delete_child(dev, children[i]);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -888,13 +888,6 @@ fdc_attach(device_t dev)
|
||||
if ((error = bus_generic_attach(dev)) != 0)
|
||||
return (error);
|
||||
|
||||
/* Now remove all children not successfully probed (if any). */
|
||||
if ((error = device_get_children(dev, &children, &nchildren)) != 0)
|
||||
return (error);
|
||||
for (i = 0; i < nchildren; i++)
|
||||
if (!device_is_alive(children[i]))
|
||||
device_delete_child(dev, children[i]);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user