From a752b69bfaaeee296d430f4c04d4a527fc0494e2 Mon Sep 17 00:00:00 2001 From: uch Date: Wed, 6 Mar 2002 15:02:04 +0000 Subject: [PATCH] make this compile with DIAGNOSTIC --- sys/arch/hpcmips/tx/tx39io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/hpcmips/tx/tx39io.c b/sys/arch/hpcmips/tx/tx39io.c index 16c267ccdb7e..20b72b4f4fa2 100644 --- a/sys/arch/hpcmips/tx/tx39io.c +++ b/sys/arch/hpcmips/tx/tx39io.c @@ -1,4 +1,4 @@ -/* $NetBSD: tx39io.c,v 1.11 2002/01/29 18:53:16 uch Exp $ */ +/* $NetBSD: tx39io.c,v 1.12 2002/03/06 15:02:04 uch Exp $ */ /*- * Copyright (c) 1999-2001 The NetBSD Foundation, Inc. @@ -390,7 +390,7 @@ tx392x_io_out(hpcio_chip_t arg, int port, int onoff) /* IO [0:15] */ pos = 1 << port; #ifdef DIAGNOSTIC - if (!(sc->sc_status.dir_io & pos)) + if (!(sc->sc_stat_io.dir & pos)) panic("%s: IO%d is not output port.\n", devname, port); #endif reg = tx_conf_read(tc, TX392X_IODATAINOUT_REG);