Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic lcr is only used when COM_16650 is defined; unbre...



details:   https://anonhg.NetBSD.org/src/rev/382760201f9d
branches:  trunk
changeset: 325262:382760201f9d
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Sun Dec 15 15:55:39 2013 +0000

description:
lcr is only used when COM_16650 is defined; unbreak the build

diffstat:

 sys/dev/ic/com.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3d478daf9586 -r 382760201f9d sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Sun Dec 15 11:06:57 2013 +0000
+++ b/sys/dev/ic/com.c  Sun Dec 15 15:55:39 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.318 2013/12/15 11:06:57 skrll Exp $ */
+/* $NetBSD: com.c,v 1.319 2013/12/15 15:55:39 mbalmer Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.318 2013/12/15 11:06:57 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.319 2013/12/15 15:55:39 mbalmer Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -385,7 +385,9 @@
 {
        struct com_regs *regsp = &sc->sc_regs;
        struct tty *tp;
+#ifdef COM_16650
        u_int8_t lcr;
+#endif
        const char *fifo_msg = NULL;
        prop_dictionary_t       dict;
        bool is_console = true;



Home | Main Index | Thread Index | Old Index