Re-enable detach events after adding a bugfix from NetBSD

that unbreaks them.

Submitted by:	dillon
Obtained from:	NetBSD
MFC after:	2 days
This commit is contained in:
Julian Elischer 2004-03-19 06:15:45 +00:00
parent d046f60e40
commit 4de762365a

View File

@ -1376,10 +1376,11 @@ usb_disconnect_port(struct usbd_port *up, device_ptr_t parent)
printf(" port %d", up->portno);
printf(" (addr %d) disconnected\n", dev->address);
config_detach(dev->subdevs[i], DETACH_FORCE);
dev->subdevs[i] = NULL;
}
}
/*usbd_add_dev_event(USB_EVENT_DEVICE_DETACH, dev);*/
usbd_add_dev_event(USB_EVENT_DEVICE_DETACH, dev);
dev->bus->devices[dev->address] = NULL;
up->device = NULL;
usb_free_device(dev);