Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Use just "type" and not "sc->sc_type" in cominit().



details:   https://anonhg.NetBSD.org/src/rev/5dc38d8d99f4
branches:  trunk
changeset: 555228:5dc38d8d99f4
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Nov 12 06:27:59 2003 +0000

description:
Use just "type" and not "sc->sc_type" in cominit().

Pointed out by Shoichi Miyake in private mail.

diffstat:

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

diffs (27 lines):

diff -r eecc728bed14 -r 5dc38d8d99f4 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Wed Nov 12 02:48:42 2003 +0000
+++ b/sys/dev/ic/com.c  Wed Nov 12 06:27:59 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com.c,v 1.222 2003/11/08 02:54:47 simonb Exp $ */
+/*     $NetBSD: com.c,v 1.223 2003/11/12 06:27:59 simonb Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.222 2003/11/08 02:54:47 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.223 2003/11/12 06:27:59 simonb Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -2386,7 +2386,7 @@
        bus_space_write_1(iot, ioh, com_fifo,
            FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_1);
 #ifdef COM_PXA2X0
-       if (sc->sc_type == COM_TYPE_PXA2x0)
+       if (type == COM_TYPE_PXA2x0)
                bus_space_write_1(iot, ioh, com_ier, IER_EUART);
        else
 #endif



Home | Main Index | Thread Index | Old Index