1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Remove more bogus reprobe code. I don't think it is needed here either.

This commit is contained in:
Warner Losh 2002-09-10 06:37:02 +00:00
parent 2d7a3e94bd
commit 17a39a01e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103172

View File

@ -320,18 +320,6 @@ cardbus_driver_added(device_t cbdev, driver_t *driver)
device_get_children(cbdev, &devlist, &numdevs);
cardattached = 0;
for (tmp = 0; tmp < numdevs; tmp++) {
if (device_get_state(devlist[tmp]) != DS_NOTPRESENT)
cardattached++;
}
if (cardattached == 0) {
free(devlist, M_TEMP);
CARD_REPROBE_CARD(device_get_parent(cbdev), cbdev);
return;
}
DEVICE_IDENTIFY(driver, cbdev);
for (tmp = 0; tmp < numdevs; tmp++) {
if (device_get_state(devlist[tmp]) == DS_NOTPRESENT) {
@ -342,8 +330,7 @@ cardbus_driver_added(device_t cbdev, driver_t *driver)
cardbus_do_cis(cbdev, dinfo->pci.cfg.dev);
if (device_probe_and_attach(dinfo->pci.cfg.dev) != 0) {
cardbus_release_all_resources(cbdev, dinfo);
} else
cardattached++;
}
}
}