diff options
-rw-r--r-- | sys/dev/i2c/lm87.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/i2c/lm87.c b/sys/dev/i2c/lm87.c index 1ecf04d2c7a..7a9389777cd 100644 --- a/sys/dev/i2c/lm87.c +++ b/sys/dev/i2c/lm87.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lm87.c,v 1.19 2007/06/24 05:34:35 dlg Exp $ */ +/* $OpenBSD: lm87.c,v 1.20 2008/11/10 05:19:48 cnst Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -141,7 +141,8 @@ lmenv_attach(struct device *parent, struct device *self, void *aux) printf(", cannot read Channel register\n"); return; } - } + } else + channel = 0; cmd = LM87_CONFIG1; if (iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP, |