]> git.sur5r.net Git - u-boot/blobdiff - cpu/i386/serial.c
Code cleanup; make several boards compile & link.
[u-boot] / cpu / i386 / serial.c
index f58b47c70e7fbd989428f79b994e1e6a141d02f8..db13008ba5b4adf5220576dfde94ee6e97ede36f 100644 (file)
@@ -51,7 +51,7 @@
 #include <asm/io.h>
 #include <asm/ibmpc.h>
 
-#if CONFIG_SERIAL_SOFTWARE_FIFO
+#ifdef CONFIG_SERIAL_SOFTWARE_FIFO
 #include <malloc.h>
 #endif
 
@@ -81,7 +81,7 @@
 #define asyncLSRRxFifoError1          0x80
 
 
-#if CONFIG_SERIAL_SOFTWARE_FIFO
+#ifdef CONFIG_SERIAL_SOFTWARE_FIFO
 /*-----------------------------------------------------------------------------+
   | Fifo
   +-----------------------------------------------------------------------------*/
@@ -193,7 +193,7 @@ int serial_getc(void)
 {
        unsigned char status = 0;
 
-#if CONFIG_SERIAL_SOFTWARE_FIFO
+#ifdef CONFIG_SERIAL_SOFTWARE_FIFO
        if (serial_buffer_active) {
                return serial_buffered_getc();
        }
@@ -225,7 +225,7 @@ int serial_tstc(void)
 {
        unsigned char status;
 
-#if CONFIG_SERIAL_SOFTWARE_FIFO
+#ifdef CONFIG_SERIAL_SOFTWARE_FIFO
        if (serial_buffer_active) {
                return serial_buffered_tstc();
        }
@@ -248,7 +248,7 @@ int serial_tstc(void)
 }
 
 
-#if CONFIG_SERIAL_SOFTWARE_FIFO
+#ifdef CONFIG_SERIAL_SOFTWARE_FIFO
 
 void serial_isr(void *arg)
 {