diff options
author | thompsa <thompsa@FreeBSD.org> | 2008-12-23 19:59:21 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2008-12-23 19:59:21 +0000 |
commit | 5b36b9db358a97ce359ba8d8fe44a7b4bb1b4131 (patch) | |
tree | cc17a38bf14bdf79d80a29635ff4fc8a63978e3d /sys/dev/usb2/controller/at91dci.c | |
parent | 0a41f1543cee2ded6567b179490c72e14c27430c (diff) | |
download | FreeBSD-src-5b36b9db358a97ce359ba8d8fe44a7b4bb1b4131.zip FreeBSD-src-5b36b9db358a97ce359ba8d8fe44a7b4bb1b4131.tar.gz |
Remove CALLOUT_RETURNUNLOCKED from the callouts, there is no reason for them to
drop the lock for us.
Diffstat (limited to 'sys/dev/usb2/controller/at91dci.c')
-rw-r--r-- | sys/dev/usb2/controller/at91dci.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb2/controller/at91dci.c b/sys/dev/usb2/controller/at91dci.c index 2827fe6..a4e43df 100644 --- a/sys/dev/usb2/controller/at91dci.c +++ b/sys/dev/usb2/controller/at91dci.c @@ -1043,16 +1043,13 @@ static void at91dci_timeout(void *arg) { struct usb2_xfer *xfer = arg; - struct at91dci_softc *sc = xfer->usb2_sc; DPRINTF("xfer=%p\n", xfer); - USB_BUS_LOCK_ASSERT(&sc->sc_bus, MA_OWNED); + USB_BUS_LOCK_ASSERT(xfer->udev->bus, MA_OWNED); /* transfer is transferred */ at91dci_device_done(xfer, USB_ERR_TIMEOUT); - - USB_BUS_UNLOCK(&sc->sc_bus); } static void |