[PATCH 12/18] Blackfin Serial Driver: fix building when debug is enabled but serial console is disabled

From: Bryan Wu
Date: Fri Mar 06 2009 - 01:44:48 EST


From: Mike Frysinger <vapier.adi@xxxxxxxxx>

Signed-off-by: Mike Frysinger <vapier.adi@xxxxxxxxx>
Signed-off-by: Bryan Wu <cooloney@xxxxxxxxxx>
---
drivers/serial/bfin_5xx.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index 5193d62..b89861d 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -1256,8 +1256,10 @@ void bfin_serial_debug(const char *fmt, ...)
char buf[128];
va_list ap;

+#ifdef CONFIG_SERIAL_BFIN_CONSOLE
if (bfin_serial_console.index < 0)
return; /* Too early. */
+#endif

va_start(ap, fmt);
vsprintf(buf, fmt, ap);
--
1.5.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/