diff options
-rw-r--r-- | sys/dev/pci/nviic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/nviic.c b/sys/dev/pci/nviic.c index 2a0e3f4b1f6..e957fe2790c 100644 --- a/sys/dev/pci/nviic.c +++ b/sys/dev/pci/nviic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nviic.c,v 1.3 2006/01/11 08:19:04 dlg Exp $ */ +/* $OpenBSD: nviic.c,v 1.4 2006/01/11 14:41:08 jsg Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -194,7 +194,9 @@ nviic_i2c_exec(void *arg, i2c_op_t op, i2c_addr_t addr, const void *cmdbuf, size_t cmdlen, void *buf, size_t len, int flags) { struct nviic_controller *nc = arg; +#ifdef NVIIC_DEBUG struct nviic_softc *sc = nc->nc_sc; +#endif u_int8_t protocol; u_int8_t *b; u_int8_t sts; |