make this compile with DIAGNOSTIC

This commit is contained in:
uch 2002-03-06 15:02:04 +00:00
parent f35aa9c904
commit a752b69bfa

View File

@ -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. * 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] */ /* IO [0:15] */
pos = 1 << port; pos = 1 << port;
#ifdef DIAGNOSTIC #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); panic("%s: IO%d is not output port.\n", devname, port);
#endif #endif
reg = tx_conf_read(tc, TX392X_IODATAINOUT_REG); reg = tx_conf_read(tc, TX392X_IODATAINOUT_REG);