From 6f3cb90c0555f667a130f685dc426a44335b6040 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 28 May 2014 14:09:58 -0600 Subject: [PATCH] Cosmetic changes --- arch/arm/src/stm32/stm32_rtcc.c | 2 ++ drivers/usbhost/usbhost_enumerate.c | 2 +- include/nuttx/usb/usbhost.h | 2 +- mm/mm_sem.c | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32/stm32_rtcc.c b/arch/arm/src/stm32/stm32_rtcc.c index f3dc454881..3c5eae20b1 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 d8bcc9c024..97f9ac9ef8 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 d96a55d9a8..b0133ca135 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 f986e9923a..e72f7d7963 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);