mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
d046f60e40
commit
4de762365a
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue