summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_rtcc.c2
-rw-r--r--nuttx/drivers/usbhost/usbhost_enumerate.c2
-rw-r--r--nuttx/include/nuttx/usb/usbhost.h2
-rw-r--r--nuttx/mm/mm_sem.c3
4 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_rtcc.c b/nuttx/arch/arm/src/stm32/stm32_rtcc.c
index f3dc45488..3c5eae20b 100644
--- a/nuttx/arch/arm/src/stm32/stm32_rtcc.c
+++ b/nuttx/arch/arm/src/stm32/stm32_rtcc.c
@@ -484,6 +484,7 @@ static int rtc_setup(void)
rtc_wprlock();
}
+
return ret;
}
@@ -526,6 +527,7 @@ static int rtc_resume(void)
putreg32((1 << 17), STM32_EXTI_PR);
#endif
+
return ret;
}
diff --git a/nuttx/drivers/usbhost/usbhost_enumerate.c b/nuttx/drivers/usbhost/usbhost_enumerate.c
index d8bcc9c02..97f9ac9ef 100644
--- a/nuttx/drivers/usbhost/usbhost_enumerate.c
+++ b/nuttx/drivers/usbhost/usbhost_enumerate.c
@@ -424,7 +424,7 @@ int usbhost_enumerate(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr,
/* Get class identification information from the device descriptor. Most
* devices set this to USB_CLASS_PER_INTERFACE (zero) and provide the
- * identification informatino in the interface descriptor(s). That allows
+ * identification information in the interface descriptor(s). That allows
* a device to support multiple, different classes.
*/
diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h
index d96a55d9a..b0133ca13 100644
--- a/nuttx/include/nuttx/usb/usbhost.h
+++ b/nuttx/include/nuttx/usb/usbhost.h
@@ -563,7 +563,7 @@ struct usbhost_registry_s
*/
FAR struct usbhost_class_s *(*create)(FAR struct usbhost_driver_s *drvr,
- FAR const struct usbhost_id_s *id);
+ FAR const struct usbhost_id_s *id);
/* This information uniquely identifies the USB host class implementation that
* goes with a specific USB device.
diff --git a/nuttx/mm/mm_sem.c b/nuttx/mm/mm_sem.c
index f986e9923..e72f7d796 100644
--- a/nuttx/mm/mm_sem.c
+++ b/nuttx/mm/mm_sem.c
@@ -211,7 +211,10 @@ void mm_givesemaphore(FAR struct mm_heap_s *heap)
{
/* Nope, this is the last reference I have */
+#ifdef CONFIG_DEBUG
msemdbg("PID=%d giving\n", my_pid);
+#endif
+
heap->mm_holder = -1;
heap->mm_counts_held = 0;
ASSERT(sem_post(&heap->mm_semaphore) == 0);