diff --git a/arch/arm/src/stm32/stm32_rtcc.c b/arch/arm/src/stm32/stm32_rtcc.c index f3dc454881b..3c5eae20b1c 100644 --- a/arch/arm/src/stm32/stm32_rtcc.c +++ b/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/drivers/usbhost/usbhost_enumerate.c b/drivers/usbhost/usbhost_enumerate.c index d8bcc9c024a..97f9ac9ef81 100644 --- a/drivers/usbhost/usbhost_enumerate.c +++ b/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/include/nuttx/usb/usbhost.h b/include/nuttx/usb/usbhost.h index d96a55d9a8d..b0133ca1358 100644 --- a/include/nuttx/usb/usbhost.h +++ b/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/mm/mm_sem.c b/mm/mm_sem.c index f986e9923ac..e72f7d79634 100644 --- a/mm/mm_sem.c +++ b/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);