diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-04-22 21:41:50 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-04-22 21:41:50 +0000 |
commit | b42af4d929f529c1ee9b391eb3616582b2708e66 (patch) | |
tree | 93b201077fe271a34cbc6bfcabb4ce92ea3ed491 | |
parent | bd3f3db8dd41b77e5624bea80abc9248a8f134a6 (diff) | |
download | FreeBSD-src-b42af4d929f529c1ee9b391eb3616582b2708e66.zip FreeBSD-src-b42af4d929f529c1ee9b391eb3616582b2708e66.tar.gz |
Use SX_DUPOK rather than making the string unique.
-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 2f3a402..bc38647 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"); |