summaryrefslogtreecommitdiff
path: root/drivers/serial/ns16550.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-11 20:26:52 -0500
committerWolfgang Denk <wd@denx.de>2009-02-21 22:49:53 +0100
commitb4746d8bf9f4ed6dc8a76c5d52db669604aff84b (patch)
tree37f192d40929a07a02b141a63580a61d936b15e1 /drivers/serial/ns16550.c
parent6bcb4b806cef8a5dd08fac9a4a672b96d9ee804e (diff)
downloadu-boot-imx-b4746d8bf9f4ed6dc8a76c5d52db669604aff84b.zip
u-boot-imx-b4746d8bf9f4ed6dc8a76c5d52db669604aff84b.tar.gz
u-boot-imx-b4746d8bf9f4ed6dc8a76c5d52db669604aff84b.tar.bz2
drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/serial/ns16550.c')
-rw-r--r--drivers/serial/ns16550.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 1b347e9..397f5df 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -5,9 +5,6 @@
*/
#include <config.h>
-
-#ifdef CONFIG_SYS_NS16550
-
#include <ns16550.h>
#define LCRVAL LCR_8N1 /* 8 data, 1 stop, no parity */
@@ -36,7 +33,7 @@ void NS16550_init (NS16550_t com_port, int baud_divisor)
#else
com_port->mdr1 = 0; /* /16 is proper to hit 115200 with 48MHz */
#endif
-#endif
+#endif /* CONFIG_OMAP */
}
#ifndef CONFIG_NS16550_MIN_FUNCTIONS
@@ -80,4 +77,3 @@ int NS16550_tstc (NS16550_t com_port)
}
#endif /* CONFIG_NS16550_MIN_FUNCTIONS */
-#endif