STM32 Serial: Don't compile up_earlyserialinit() if USE_EARLYSERIALINIT is not define. Otherwise, a macro definition clobbers the function definition

This commit is contained in:
Gregory Nutt 2014-10-28 06:42:53 -06:00
parent cf5e0c1b39
commit facf7e916e

View File

@ -2547,6 +2547,7 @@ static int up_pm_prepare(struct pm_callback_s *cb, enum pm_state_e pmstate)
* *
****************************************************************************/ ****************************************************************************/
#if USE_EARLYSERIALINIT
void up_earlyserialinit(void) void up_earlyserialinit(void)
{ {
#ifdef HAVE_UART #ifdef HAVE_UART
@ -2569,6 +2570,7 @@ void up_earlyserialinit(void)
#endif #endif
#endif /* HAVE UART */ #endif /* HAVE UART */
} }
#endif
/**************************************************************************** /****************************************************************************
* Name: up_serialinit * Name: up_serialinit