mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Put the event notification back where it was for freeBSD, after device creation.
Since NetBSD doesn't have devfs the order for them doesn't matter.. Reverses one part of 1.60->1.61 NetBSD diff reduction. Obtained from: Not NetBSD
This commit is contained in:
parent
ea3c18aedc
commit
8737555800
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127224
@ -1124,14 +1124,14 @@ usbd_new_device(device_ptr_t parent, usbd_bus_handle bus, int depth,
|
||||
DPRINTF(("usbd_new_device: new dev (addr %d), dev=%p, parent=%p\n",
|
||||
addr, dev, parent));
|
||||
|
||||
usbd_add_dev_event(USB_EVENT_DEVICE_ATTACH, dev);
|
||||
|
||||
err = usbd_probe_and_attach(parent, dev, port, addr);
|
||||
if (err) {
|
||||
usbd_remove_device(dev, up);
|
||||
return (err);
|
||||
}
|
||||
|
||||
usbd_add_dev_event(USB_EVENT_DEVICE_ATTACH, dev);
|
||||
|
||||
return (USBD_NORMAL_COMPLETION);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user