diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2002-01-26 14:00:25 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2002-01-26 14:00:25 +0000 |
| commit | 67a2e470229b2f43ae6abecb8b27ff4790526381 (patch) | |
| tree | 9e88f1e4ad870397c357b7c62f1431045dd75306 /sys/dev/usb/uhub.c | |
| parent | eb92aa3c3ecbea9086789f5d2710a22c49c0418a (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/uhub.c')
| -rw-r--r-- | sys/dev/usb/uhub.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 334fe2a6eaf2..0533249aab8d 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -503,7 +503,7 @@ uhub_activate(device_ptr_t self, enum devact act) USB_DETACH(uhub) { USB_DETACH_START(uhub, sc); - struct usbd_hub *hub = sc->sc_hub->hub; + usbd_device_handle dev = sc->sc_hub; struct usbd_port *rup; int port, nports; @@ -513,22 +513,22 @@ USB_DETACH(uhub) DPRINTF(("uhub_detach: sc=%port\n", sc)); #endif - if (hub == NULL) /* Must be partially working */ + if (dev->hub == NULL) /* Must be partially working */ return (0); usbd_abort_pipe(sc->sc_ipipe); usbd_close_pipe(sc->sc_ipipe); - nports = hub->hubdesc.bNbrPorts; + nports = dev->hub->hubdesc.bNbrPorts; for(port = 0; port < nports; port++) { - rup = &hub->ports[port]; + rup = &dev->hub->ports[port]; if (rup->device) usb_disconnect_port(rup, self); } - free(hub, M_USBDEV); - sc->sc_hub->hub = NULL; + free(dev->hub, M_USBDEV); + dev->hub = NULL; return (0); } |
