]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial/ns16550.c
omap3_spi: introduce CONFIG_OMAP3_SPI_D0_D1_SWAPPED
[u-boot] / drivers / serial / ns16550.c
index facadd2f5c3e31f59f09829c46a22cc4feb022e4..9027781445f447efc63483294b2bf564947842df 100644 (file)
@@ -101,7 +101,7 @@ void NS16550_putc(NS16550_t com_port, char c)
 char NS16550_getc(NS16550_t com_port)
 {
        while ((serial_in(&com_port->lsr) & UART_LSR_DR) == 0) {
-#ifdef CONFIG_USB_TTY
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_USB_TTY)
                extern void usbtty_poll(void);
                usbtty_poll();
 #endif