diff --git a/arch/arm/src/a1x/a1x_serial.c b/arch/arm/src/a1x/a1x_serial.c index f3a9d86c4f2..425176721f2 100644 --- a/arch/arm/src/a1x/a1x_serial.c +++ b/arch/arm/src/a1x/a1x_serial.c @@ -751,7 +751,6 @@ static inline void up_enablebreaks(struct up_dev_s *priv, bool enable) #ifdef CONFIG_A1X_UART0 static inline void a1x_uart0config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART0 */ @@ -773,7 +772,6 @@ static inline void a1x_uart0config(void) #ifdef CONFIG_A1X_UART1 static inline void a1x_uart1config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART1 */ @@ -795,7 +793,6 @@ static inline void a1x_uart1config(void) #ifdef CONFIG_A1X_UART2 static inline void a1x_uart2config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART2 */ @@ -817,7 +814,6 @@ static inline void a1x_uart2config(void) #ifdef CONFIG_A1X_UART3 static inline void a1x_uart3config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART3 */ @@ -839,7 +835,6 @@ static inline void a1x_uart3config(void) #ifdef CONFIG_A1X_UART4 static inline void a1x_uart4config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART4 */ @@ -861,7 +856,6 @@ static inline void a1x_uart4config(void) #ifdef CONFIG_A1X_UART5 static inline void a1x_uart5config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART5 */ @@ -883,7 +877,6 @@ static inline void a1x_uart5config(void) #ifdef CONFIG_A1X_UART6 static inline void a1x_uart6config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART6 */ @@ -905,7 +898,6 @@ static inline void a1x_uart6config(void) #ifdef CONFIG_A1X_UART7 static inline void a1x_uart7config(void) { - uint32_t regval; irqstate_t flags; /* Step 1: Enable power to UART7 */ diff --git a/arch/arm/src/lpc17xx/lpc17_lcd.c b/arch/arm/src/lpc17xx/lpc17_lcd.c index 7b1fe62b5a7..ebc43759688 100644 --- a/arch/arm/src/lpc17xx/lpc17_lcd.c +++ b/arch/arm/src/lpc17xx/lpc17_lcd.c @@ -763,7 +763,6 @@ void fb_uninitialize(void) /* Turn off clocking to the LCD. modifyreg32() can do this atomically. */ modifyreg32(LPC17_SYSCON_PCONP, SYSCON_PCONP_PCLCD, 0); - return OK; } /************************************************************************************ diff --git a/arch/arm/src/sama5/sam_clockconfig.c b/arch/arm/src/sama5/sam_clockconfig.c index 5df01d159a3..7ace056b3f7 100644 --- a/arch/arm/src/sama5/sam_clockconfig.c +++ b/arch/arm/src/sama5/sam_clockconfig.c @@ -364,7 +364,7 @@ static void __ramfunc__ sam_mckdivider(void) * ****************************************************************************/ -#ifdef PMC_MCKR_H32MXDIV +#if defined(PMC_MCKR_H32MXDIV) && defined(NEED_PLLSETUP) static void __ramfunc__ sam_h32mxdivider(void) { uint32_t regval;