summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-03-20 07:31:11 +0000
committerjulian <julian@FreeBSD.org>2004-03-20 07:31:11 +0000
commit7ec9985db2ca35ddd34202785018bd162fa7d232 (patch)
tree558d6b45cdd594558dd60b3c73b67bb8fac2b087 /sys
parent4d5ab8c775da937a04d907aaa9e3606bd837c3a1 (diff)
downloadFreeBSD-src-7ec9985db2ca35ddd34202785018bd162fa7d232.zip
FreeBSD-src-7ec9985db2ca35ddd34202785018bd162fa7d232.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/usb_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 3ac498a..d996a06 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -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);
}
OpenPOWER on IntegriCloud