make this compile with DIAGNOSTIC
This commit is contained in:
parent
f35aa9c904
commit
a752b69bfa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user