summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index f87b63111..c4c418cb5 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -636,6 +636,8 @@ bool tud_deinit(uint8_t rhport) {
_usbd_mutex = NULL;
#endif
+ osal_spin_deinit(&_usbd_spin);
+
_usbd_rhport = RHPORT_INVALID;
if (cfg_num > 0) {