diff options
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r-- | sys/arch/macppc/dev/kiic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/kiic.c b/sys/arch/macppc/dev/kiic.c index 7e831374a4b..5a1a0307ceb 100644 --- a/sys/arch/macppc/dev/kiic.c +++ b/sys/arch/macppc/dev/kiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kiic.c,v 1.2 2007/05/20 23:38:52 thib Exp $ */ +/* $OpenBSD: kiic.c,v 1.3 2008/04/18 17:59:37 deraadt Exp $ */ /* $NetBSD: kiic.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */ /*- @@ -332,6 +332,8 @@ kiic_start(struct kiic_softc *sc, int addr, int subaddr, void *data, int len) printf("I2C_ERROR\n"); return (-1); } + if (sc->sc_resid != 0) + return (-1); return (0); } |