diff options
Diffstat (limited to 'sys/dev/ida/ida.c')
-rw-r--r-- | sys/dev/ida/ida.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ida/ida.c b/sys/dev/ida/ida.c index 390d07d010d6..fa135b7fc9ed 100644 --- a/sys/dev/ida/ida.c +++ b/sys/dev/ida/ida.c @@ -301,7 +301,7 @@ ida_setup(struct ida_softc *ida) mtx_unlock(&ida->lock); for (i = 0; i < cinfo.num_drvs; i++) { - child = device_add_child(ida->dev, /*"idad"*/NULL, -1); + child = device_add_child(ida->dev, /*"idad"*/NULL, DEVICE_UNIT_ANY); if (child != NULL) device_set_ivars(child, (void *)(intptr_t)i); } @@ -333,7 +333,7 @@ ida_startup(void *arg) config_intrhook_disestablish(&ida->ich); bus_topo_lock(); - bus_generic_attach(ida->dev); + bus_attach_children(ida->dev); bus_topo_unlock(); } @@ -348,9 +348,6 @@ ida_detach(device_t dev) error = bus_generic_detach(dev); if (error) return (error); - error = device_delete_children(dev); - if (error) - return (error); /* * XXX |