summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/controller/uhci2_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb2/controller/uhci2_pci.c')
-rw-r--r--sys/dev/usb2/controller/uhci2_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb2/controller/uhci2_pci.c b/sys/dev/usb2/controller/uhci2_pci.c
index 947f9af..44e0b59 100644
--- a/sys/dev/usb2/controller/uhci2_pci.c
+++ b/sys/dev/usb2/controller/uhci2_pci.c
@@ -321,7 +321,7 @@ uhci_pci_attach(device_t self)
break;
}
- err = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_bus.mtx,
+ err = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_bus.bus_mtx,
NULL, 0, 4);
if (err) {
device_printf(self, "could not setup config thread!\n");
@@ -390,12 +390,12 @@ uhci_pci_detach(device_t self)
* uhci_init.
*/
if (sc->sc_io_res) {
- mtx_lock(&sc->sc_bus.mtx);
+ USB_BUS_LOCK(&sc->sc_bus);
/* stop the controller */
uhci_reset(sc);
- mtx_unlock(&sc->sc_bus.mtx);
+ USB_BUS_UNLOCK(&sc->sc_bus);
}
pci_disable_busmaster(self);
OpenPOWER on IntegriCloud