diff options
Diffstat (limited to 'sys/dev/bhnd/bcma/bcma.c')
-rw-r--r-- | sys/dev/bhnd/bcma/bcma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/bhnd/bcma/bcma.c b/sys/dev/bhnd/bcma/bcma.c index c9df03cfb504..a83873b321c2 100644 --- a/sys/dev/bhnd/bcma/bcma.c +++ b/sys/dev/bhnd/bcma/bcma.c @@ -81,7 +81,6 @@ bcma_attach(device_t dev) /* Enumerate children */ if ((error = bcma_add_children(dev))) { - device_delete_children(dev); return (error); } @@ -678,7 +677,7 @@ bcma_add_children(device_t bus) bcma_erom = (struct bcma_erom *)erom; while ((error = bcma_erom_next_corecfg(bcma_erom, &corecfg)) == 0) { /* Add the child device */ - child = BUS_ADD_CHILD(bus, 0, NULL, -1); + child = BUS_ADD_CHILD(bus, 0, NULL, DEVICE_UNIT_ANY); if (child == NULL) { error = ENXIO; goto cleanup; |