summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r--sys/dev/usb/uhub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index 75bc3325dee..57d8a0003df 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhub.c,v 1.55 2010/09/23 05:44:15 jakemsr Exp $ */
+/* $OpenBSD: uhub.c,v 1.56 2010/12/06 04:41:40 jakemsr 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 $ */
@@ -353,8 +353,8 @@ uhub_explore(usbd_device_handle dev)
DPRINTFN(10, ("uhub_explore dev=%p addr=%d\n", dev, dev->address));
- if (dev->bus->dying) {
- DPRINTF(("%s: root hub gone at start\n", __func__));
+ if (usbd_is_dying(dev)) {
+ DPRINTF(("%s: dying\n", __func__));
return (USBD_IOERROR);
}