Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/imx fix to compile unless defined IMXUARTCONSOLE



details:   https://anonhg.NetBSD.org/src/rev/7c10a90d6920
branches:  trunk
changeset: 339603:7c10a90d6920
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Jul 30 04:39:42 2015 +0000

description:
fix to compile unless defined IMXUARTCONSOLE

diffstat:

 sys/arch/arm/imx/imxuart.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 5026460ae3df -r 7c10a90d6920 sys/arch/arm/imx/imxuart.c
--- a/sys/arch/arm/imx/imxuart.c        Thu Jul 30 04:36:48 2015 +0000
+++ b/sys/arch/arm/imx/imxuart.c        Thu Jul 30 04:39:42 2015 +0000
@@ -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 @@
 
        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 @@
 }
 
 
-#endif
-
-
 #ifdef IMXUARTCONSOLE
 /*
  * Following are all routines needed for UART to act as console



Home | Main Index | Thread Index | Old Index