diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2010-04-22 21:41:50 +0000 |
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2010-04-22 21:41:50 +0000 |
| commit | 0d92ac2a9240a76521908970dd2ea0406c973ba6 (patch) | |
| tree | 93b201077fe271a34cbc6bfcabb4ce92ea3ed491 | |
| parent | b850ecc180aa37c044f17d6e3c964691cfc30514 (diff) | |
Notes
| -rw-r--r-- | sys/dev/usb/usb_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index 2f3a402d4acd..bc3864749078 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -1491,10 +1491,10 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus, return (NULL); } /* initialise our SX-lock */ - sx_init(udev->default_sx, "0123456789ABCDEF - USB device SX lock" + depth); + sx_init_flags(udev->default_sx, "USB device SX lock", SX_DUPOK); /* initialise our SX-lock */ - sx_init(udev->default_sx + 1, "0123456789ABCDEF - USB config SX lock" + depth); + sx_init_flags(udev->default_sx + 1, "USB config SX lock", SX_DUPOK); cv_init(udev->default_cv, "WCTRL"); cv_init(udev->default_cv + 1, "UGONE"); |
