aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/template/usb_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/template/usb_template.c')
-rw-r--r--sys/dev/usb/template/usb_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/template/usb_template.c b/sys/dev/usb/template/usb_template.c
index ce48b3fe7c5c..805fb8ffe103 100644
--- a/sys/dev/usb/template/usb_template.c
+++ b/sys/dev/usb/template/usb_template.c
@@ -1240,7 +1240,7 @@ usb_temp_setup(struct usb_device *udev,
return (0);
/* Protect scratch area */
- do_unlock = usbd_enum_lock(udev);
+ do_unlock = usbd_ctrl_lock(udev);
uts = udev->scratch.temp_setup;
@@ -1319,7 +1319,7 @@ done:
if (error)
usb_temp_unsetup(udev);
if (do_unlock)
- usbd_enum_unlock(udev);
+ usbd_ctrl_unlock(udev);
return (error);
}