summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2007-03-18 20:14:51 +0000
committermglocker <mglocker@openbsd.org>2007-03-18 20:14:51 +0000
commit5c2c2405fa31d0218cd1c7e8729399c181869af1 (patch)
tree7db4ab809f3b8c34d158eb9134282ca6161f43f6 /sys/dev/usb/uhub.c
parentIt's not smart to use a space as a field separator when a space can (diff)
downloadwireguard-openbsd-5c2c2405fa31d0218cd1c7e8729399c181869af1.tar.xz
wireguard-openbsd-5c2c2405fa31d0218cd1c7e8729399c181869af1.zip
Backout pascoe@'s last USB change because it page faults at attachment
time. Chris; Get your shiz fixed and tested for the next time. We have better todo then wasting our time by backing out untested stuff. OK deraadt, OK ckuethe
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r--sys/dev/usb/uhub.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index 056158408e2..631607cdb14 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhub.c,v 1.35 2007/03/18 06:00:45 pascoe Exp $ */
+/* $OpenBSD: uhub.c,v 1.36 2007/03/18 20:14:51 mglocker Exp $ */
/* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
@@ -338,11 +338,9 @@ USB_ATTACH(uhub)
USBDEVNAME(sc->sc_dev), port,
usbd_errstr(err));
DPRINTF(("usb_init_port: turn on port %d power\n", port));
- }
-
- /* Wait for stable power. Root hubs delay in their event thread. */
- if (dev->powersrc->parent != NULL)
+ /* Wait for stable power. */
usbd_delay_ms(dev, pwrdly);
+ }
/* The usual exploration will finish the setup. */