Module Name:    src
Committed By:   ryo
Date:           Thu Jul 30 04:39:42 UTC 2015

Modified Files:
        src/sys/arch/arm/imx: imxuart.c

Log Message:
fix to compile unless defined IMXUARTCONSOLE


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/imx/imxuart.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/imx/imxuart.c
diff -u src/sys/arch/arm/imx/imxuart.c:1.18 src/sys/arch/arm/imx/imxuart.c:1.19
--- src/sys/arch/arm/imx/imxuart.c:1.18	Wed Jul 29 08:51:03 2015
+++ src/sys/arch/arm/imx/imxuart.c	Thu Jul 30 04:39:42 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: imxuart.c,v 1.18 2015/07/29 08:51:03 ryo Exp $ */
+/* $NetBSD: imxuart.c,v 1.19 2015/07/30 04:39:42 ryo Exp $ */
 
 /*
  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.18 2015/07/29 08:51:03 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.19 2015/07/30 04:39:42 ryo Exp $");
 
 #include "opt_imxuart.h"
 #include "opt_ddb.h"
@@ -2278,9 +2278,10 @@ imxuart_common_putc(dev_t dev, struct im
 
 	splx(s);
 }
+#endif /* defined(IMXUARTCONSOLE) || defined(KGDB) */
 
 /*
- * Initialize UART for use as console or KGDB line.
+ * Initialize UART
  */
 int
 imxuart_init(struct imxuart_regs *regsp, int rate, tcflag_t cflag, int domap)
@@ -2336,9 +2337,6 @@ imxuart_init(struct imxuart_regs *regsp,
 }
 
 
-#endif
-
-
 #ifdef	IMXUARTCONSOLE
 /*
  * Following are all routines needed for UART to act as console

Reply via email to