Call DEVICE_IDENIFY in bus_generic_driver_added to allow devices to
add nodes to the tree. Also, default to bus_generic_driver_added for the BUS_DRIVER_ADDED method. This allows newbus busses to be kldload'd. Reviewed by: dfr
This commit is contained in:
parent
6bab6ffeb8
commit
6d4d0ac958
@ -113,7 +113,7 @@ METHOD void child_detached {
|
||||
METHOD void driver_added {
|
||||
device_t dev;
|
||||
driver_t *driver;
|
||||
}
|
||||
} DEFAULT bus_generic_driver_added;
|
||||
|
||||
#
|
||||
# For busses which use use drivers supporting DEVICE_IDENTIFY to
|
||||
|
@ -1924,6 +1924,7 @@ bus_generic_driver_added(device_t dev, driver_t *driver)
|
||||
{
|
||||
device_t child;
|
||||
|
||||
DEVICE_IDENTIFY(driver, dev);
|
||||
for (child = TAILQ_FIRST(&dev->children);
|
||||
child; child = TAILQ_NEXT(child, link))
|
||||
if (child->state == DS_NOTPRESENT)
|
||||
|
Loading…
Reference in New Issue
Block a user