From e915f8bb73d74178bc21d3a457959883b1afd1c0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 5 Feb 2009 21:04:36 -0500 Subject: 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 --- common/serial.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'common/serial.c') diff --git a/common/serial.c b/common/serial.c index b38d1e762..09385d017 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 */ -- cgit v1.2.3