summaryrefslogtreecommitdiffstats
path: root/common/serial.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-05 21:04:36 -0500
committerWolfgang Denk <wd@denx.de>2009-02-11 23:05:57 +0100
commite915f8bb73d74178bc21d3a457959883b1afd1c0 (patch)
tree4b864d952f7c8cab0e0b8c9758cadac843b389e8 /common/serial.c
parentab76e9848a1f4db64d14233741d739a3b3360c93 (diff)
downloadtalos-obmc-uboot-e915f8bb73d74178bc21d3a457959883b1afd1c0.tar.gz
talos-obmc-uboot-e915f8bb73d74178bc21d3a457959883b1afd1c0.zip
common/{hush, kgdb, serial}.c: build by COBJS-$(...) in Makefile
Move global '#ifdef CONFIG_xxx .... #endif' out of the .c files and into the COBJS-$(CONFIG_xxx) in the Makefile. Also delete unused var in kgdb code in the process. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/serial.c')
-rw-r--r--common/serial.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/serial.c b/common/serial.c
index b38d1e7628..09385d017d 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -27,8 +27,6 @@
DECLARE_GLOBAL_DATA_PTR;
-#if defined(CONFIG_SERIAL_MULTI)
-
static struct serial_device *serial_devices = NULL;
static struct serial_device *serial_current = NULL;
@@ -255,5 +253,3 @@ void serial_puts (const char *s)
serial_current->puts (s);
}
-
-#endif /* CONFIG_SERIAL_MULTI */
OpenPOWER on IntegriCloud