Blackfin: dont check baud if it wont actually get used

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2008-10-20 21:08:54 -04:00
parent 400f5778f3
commit ee1d2001ea

View File

@ -61,7 +61,11 @@ static inline uint32_t serial_init(void)
}
#endif
uint32_t old_baud = serial_early_get_baud();
uint32_t old_baud;
if (BFIN_DEBUG_EARLY_SERIAL || CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_UART)
old_baud = serial_early_get_baud();
else
old_baud = CONFIG_BAUDRATE;
if (BFIN_DEBUG_EARLY_SERIAL) {
serial_early_init();